mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-26 01:10:39 +00:00
added IconButton
tooltips
This commit is contained in:
parent
16eef583b0
commit
fec5afece7
12 changed files with 80 additions and 16 deletions
|
@ -96,5 +96,17 @@
|
||||||
"buyLightmeterPro": "Buy Lightmeter Pro",
|
"buyLightmeterPro": "Buy Lightmeter Pro",
|
||||||
"lightmeterPro": "Lightmeter Pro",
|
"lightmeterPro": "Lightmeter Pro",
|
||||||
"lightmeterProDescription": "Unlocks extra features, such as equipment profiles containing filters for aperture, shutter speed, and more; and a list of films with compensation for what's known as reciprocity failure.\n\nThe source code of Lightmeter is available on GitHub. You are welcome to compile it yourself. However, if you want to support the development and receive new features and updates, consider purchasing Lightmeter Pro.",
|
"lightmeterProDescription": "Unlocks extra features, such as equipment profiles containing filters for aperture, shutter speed, and more; and a list of films with compensation for what's known as reciprocity failure.\n\nThe source code of Lightmeter is available on GitHub. You are welcome to compile it yourself. However, if you want to support the development and receive new features and updates, consider purchasing Lightmeter Pro.",
|
||||||
"buy": "Buy"
|
"buy": "Buy",
|
||||||
|
"tooltipAdd": "Add",
|
||||||
|
"tooltipClose": "Close",
|
||||||
|
"tooltipExpand": "Expand",
|
||||||
|
"tooltipCollapse": "Collapse",
|
||||||
|
"tooltipCopy": "Copy",
|
||||||
|
"tooltipDelete": "Delete",
|
||||||
|
"tooltipSelectAll": "Select all",
|
||||||
|
"tooltipDesecelectAll": "Deselect all",
|
||||||
|
"tooltipResetToZero": "Reset to zero",
|
||||||
|
"tooltipUseLightSensor": "Use lightsensor",
|
||||||
|
"tooltipUseCamera": "Use camera",
|
||||||
|
"tooltipOpenSettings": "Open settings"
|
||||||
}
|
}
|
|
@ -96,5 +96,17 @@
|
||||||
"buyLightmeterPro": "Acheter Lightmeter Pro",
|
"buyLightmeterPro": "Acheter Lightmeter Pro",
|
||||||
"lightmeterPro": "Lightmeter Pro",
|
"lightmeterPro": "Lightmeter Pro",
|
||||||
"lightmeterProDescription": "Déverrouille des fonctionnalités supplémentaires, telles que des profils d'équipement contenant des filtres pour l'ouverture, la vitesse d'obturation et plus encore, ainsi qu'une liste de films avec une compensation pour ce que l'on appelle l'échec de réciprocité.\n\nLe code source du Lightmeter est disponible sur GitHub. Vous pouvez le compiler vous-même. Cependant, si vous souhaitez soutenir le développement et recevoir de nouvelles fonctionnalités et mises à jour, envisagez d'acheter Lightmeter Pro.",
|
"lightmeterProDescription": "Déverrouille des fonctionnalités supplémentaires, telles que des profils d'équipement contenant des filtres pour l'ouverture, la vitesse d'obturation et plus encore, ainsi qu'une liste de films avec une compensation pour ce que l'on appelle l'échec de réciprocité.\n\nLe code source du Lightmeter est disponible sur GitHub. Vous pouvez le compiler vous-même. Cependant, si vous souhaitez soutenir le développement et recevoir de nouvelles fonctionnalités et mises à jour, envisagez d'acheter Lightmeter Pro.",
|
||||||
"buy": "Acheter"
|
"buy": "Acheter",
|
||||||
|
"tooltipAdd": "Ajouter",
|
||||||
|
"tooltipClose": "Fermer",
|
||||||
|
"tooltipExpand": "Élargir",
|
||||||
|
"tooltipCollapse": "Effondrement",
|
||||||
|
"tooltipCopy": "Copie",
|
||||||
|
"tooltipDelete": "Supprimer",
|
||||||
|
"tooltipSelectAll": "Tout sélectionner",
|
||||||
|
"tooltipDesecelectAll": "Désélectionner tout",
|
||||||
|
"tooltipResetToZero": "Remise à zéro",
|
||||||
|
"tooltipUseLightSensor": "Utiliser un capteur de lumière",
|
||||||
|
"tooltipUseCamera": "Utiliser la caméra",
|
||||||
|
"tooltipOpenSettings": "Ouvrir les paramètres"
|
||||||
}
|
}
|
|
@ -96,5 +96,17 @@
|
||||||
"buyLightmeterPro": "Купить Lightmeter Pro",
|
"buyLightmeterPro": "Купить Lightmeter Pro",
|
||||||
"lightmeterPro": "Lightmeter Pro",
|
"lightmeterPro": "Lightmeter Pro",
|
||||||
"lightmeterProDescription": "Даёт доступ к таким функциям как профили оборудования, содержащие фильтры для диафрагмы, выдержки и других значений, а также набору пленок с компенсацией эффекта Шварцшильда.\n\nИсходный код Lightmeter доступен на GitHub. Вы можете собрать его самостоятельно. Однако если вы хотите поддержать разработку и получать новые функции и обновления, то приобретите Lightmeter Pro.",
|
"lightmeterProDescription": "Даёт доступ к таким функциям как профили оборудования, содержащие фильтры для диафрагмы, выдержки и других значений, а также набору пленок с компенсацией эффекта Шварцшильда.\n\nИсходный код Lightmeter доступен на GitHub. Вы можете собрать его самостоятельно. Однако если вы хотите поддержать разработку и получать новые функции и обновления, то приобретите Lightmeter Pro.",
|
||||||
"buy": "Купить"
|
"buy": "Купить",
|
||||||
|
"tooltipAdd": "Добавить",
|
||||||
|
"tooltipClose": "Закрыть",
|
||||||
|
"tooltipExpand": "Развернуть",
|
||||||
|
"tooltipCollapse": "Свернуть",
|
||||||
|
"tooltipCopy": "Скопировать",
|
||||||
|
"tooltipDelete": "Удалить",
|
||||||
|
"tooltipSelectAll": "Выбрать все",
|
||||||
|
"tooltipDesecelectAll": "Отменить все",
|
||||||
|
"tooltipResetToZero": "Сбросить до 0",
|
||||||
|
"tooltipUseLightSensor": "Использовать датчик освещенности",
|
||||||
|
"tooltipUseCamera": "Использовать камеру",
|
||||||
|
"tooltipOpenSettings": "Открыть настройки"
|
||||||
}
|
}
|
|
@ -96,5 +96,17 @@
|
||||||
"buyLightmeterPro": "Buy Lightmeter Pro",
|
"buyLightmeterPro": "Buy Lightmeter Pro",
|
||||||
"lightmeterPro": "Lightmeter Pro",
|
"lightmeterPro": "Lightmeter Pro",
|
||||||
"lightmeterProDescription": "Unlocks extra features, such as equipment profiles containing filters for aperture, shutter speed, and more; and a list of films with compensation for what's known as reciprocity failure.\n\nThe source code of Lightmeter is available on GitHub. You are welcome to compile it yourself. However, if you want to support the development and receive new features and updates, consider purchasing Lightmeter Pro.",
|
"lightmeterProDescription": "Unlocks extra features, such as equipment profiles containing filters for aperture, shutter speed, and more; and a list of films with compensation for what's known as reciprocity failure.\n\nThe source code of Lightmeter is available on GitHub. You are welcome to compile it yourself. However, if you want to support the development and receive new features and updates, consider purchasing Lightmeter Pro.",
|
||||||
"buy": "Buy"
|
"buy": "Buy",
|
||||||
|
"tooltipAdd": "Add",
|
||||||
|
"tooltipClose": "Close",
|
||||||
|
"tooltipExpand": "Expand",
|
||||||
|
"tooltipCollapse": "Collapse",
|
||||||
|
"tooltipCopy": "Copy",
|
||||||
|
"tooltipDelete": "Delete",
|
||||||
|
"tooltipSelectAll": "Select all",
|
||||||
|
"tooltipDesecelectAll": "Deselect all",
|
||||||
|
"resetToZero": "Reset to zero",
|
||||||
|
"tooltipUseLightSensor": "Use lightsensor",
|
||||||
|
"tooltipUseCamera": "Use camera",
|
||||||
|
"tooltipOpenSettings": "Open settings"
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:lightmeter/data/models/ev_source_type.dart';
|
import 'package:lightmeter/data/models/ev_source_type.dart';
|
||||||
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/providers/user_preferences_provider.dart';
|
import 'package:lightmeter/providers/user_preferences_provider.dart';
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
import 'package:lightmeter/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart';
|
import 'package:lightmeter/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart';
|
||||||
|
@ -46,6 +47,10 @@ class MeteringBottomControls extends StatelessWidget {
|
||||||
? Icons.camera_rear
|
? Icons.camera_rear
|
||||||
: Icons.wb_incandescent,
|
: Icons.wb_incandescent,
|
||||||
),
|
),
|
||||||
|
tooltip:
|
||||||
|
UserPreferencesProvider.evSourceTypeOf(context) != EvSourceType.camera
|
||||||
|
? S.of(context).tooltipUseCamera
|
||||||
|
: S.of(context).tooltipUseLightSensor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -61,6 +66,7 @@ class MeteringBottomControls extends StatelessWidget {
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
onPressed: onSettings,
|
onPressed: onSettings,
|
||||||
icon: const Icon(Icons.settings),
|
icon: const Icon(Icons.settings),
|
||||||
|
tooltip: S.of(context).tooltipOpenSettings,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
import 'package:lightmeter/screens/shared/centered_slider/widget_slider_centered.dart';
|
import 'package:lightmeter/screens/shared/centered_slider/widget_slider_centered.dart';
|
||||||
import 'package:lightmeter/utils/to_string_signed.dart';
|
import 'package:lightmeter/utils/to_string_signed.dart';
|
||||||
|
@ -22,6 +23,7 @@ class ExposureOffsetSlider extends StatelessWidget {
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.sync),
|
icon: const Icon(Icons.sync),
|
||||||
onPressed: value != 0.0 ? () => onChanged(0.0) : null,
|
onPressed: value != 0.0 ? () => onChanged(0.0) : null,
|
||||||
|
tooltip: S.of(context).tooltipResetToZero,
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
@ -2,6 +2,7 @@ import 'dart:math';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/scheduler.dart';
|
import 'package:flutter/scheduler.dart';
|
||||||
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
import 'package:lightmeter/screens/settings/components/equipment/components/equipment_profiles/components/equipment_profile_screen/components/equipment_profile_container/components/equipment_list_tiles/widget_list_tiles_equipments.dart';
|
import 'package:lightmeter/screens/settings/components/equipment/components/equipment_profiles/components/equipment_profile_screen/components/equipment_profile_container/components/equipment_list_tiles/widget_list_tiles_equipments.dart';
|
||||||
import 'package:lightmeter/screens/settings/components/equipment/components/equipment_profiles/components/equipment_profile_screen/components/equipment_profile_name_dialog/widget_dialog_equipment_profile_name.dart';
|
import 'package:lightmeter/screens/settings/components/equipment/components/equipment_profiles/components/equipment_profile_screen/components/equipment_profile_name_dialog/widget_dialog_equipment_profile_name.dart';
|
||||||
|
@ -188,6 +189,7 @@ class _AnimatedArrowButton extends AnimatedWidget {
|
||||||
angle: _progress.value * pi,
|
angle: _progress.value * pi,
|
||||||
child: const Icon(Icons.keyboard_arrow_down),
|
child: const Icon(Icons.keyboard_arrow_down),
|
||||||
),
|
),
|
||||||
|
tooltip: _progress.value == 0 ? S.of(context).tooltipExpand : S.of(context).tooltipCollapse,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -246,10 +248,12 @@ class _AnimatedEquipmentListTiles extends AnimatedWidget {
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: onCopy,
|
onPressed: onCopy,
|
||||||
icon: const Icon(Icons.copy),
|
icon: const Icon(Icons.copy),
|
||||||
|
tooltip: S.of(context).tooltipCopy,
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: onDelete,
|
onPressed: onDelete,
|
||||||
icon: const Icon(Icons.delete),
|
icon: const Icon(Icons.delete),
|
||||||
|
tooltip: S.of(context).tooltipDelete,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -34,10 +34,7 @@ class _EquipmentProfilesScreenState extends State<EquipmentProfilesScreen> {
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: _addProfile,
|
onPressed: _addProfile,
|
||||||
icon: const Icon(Icons.add),
|
icon: const Icon(Icons.add),
|
||||||
),
|
tooltip: S.of(context).tooltipAdd,
|
||||||
IconButton(
|
|
||||||
onPressed: Navigator.of(context).pop,
|
|
||||||
icon: const Icon(Icons.close),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
slivers: profilesCount == 1
|
slivers: profilesCount == 1
|
||||||
|
|
|
@ -117,6 +117,7 @@ class _CalibrationUnit extends StatelessWidget {
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: onReset,
|
onPressed: onReset,
|
||||||
icon: const Icon(Icons.sync),
|
icon: const Icon(Icons.sync),
|
||||||
|
tooltip: S.of(context).tooltipResetToZero,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -85,6 +85,9 @@ class _DialogFilterState<T> extends State<DialogFilter<T>> {
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
icon: Icon(_hasAnyUnselected ? Icons.select_all : Icons.deselect),
|
icon: Icon(_hasAnyUnselected ? Icons.select_all : Icons.deselect),
|
||||||
onPressed: _toggleAll,
|
onPressed: _toggleAll,
|
||||||
|
tooltip: _hasAnyUnselected
|
||||||
|
? S.of(context).tooltipSelectAll
|
||||||
|
: S.of(context).tooltipDesecelectAll,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
|
|
|
@ -35,12 +35,6 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||||
return ScaffoldMessenger(
|
return ScaffoldMessenger(
|
||||||
child: SliverScreen(
|
child: SliverScreen(
|
||||||
title: S.of(context).settings,
|
title: S.of(context).settings,
|
||||||
appBarActions: [
|
|
||||||
IconButton(
|
|
||||||
onPressed: Navigator.of(context).pop,
|
|
||||||
icon: const Icon(Icons.close),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverList(
|
SliverList(
|
||||||
delegate: SliverChildListDelegate(
|
delegate: SliverChildListDelegate(
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
|
|
||||||
class SliverScreen extends StatelessWidget {
|
class SliverScreen extends StatelessWidget {
|
||||||
|
@ -8,7 +9,7 @@ class SliverScreen extends StatelessWidget {
|
||||||
|
|
||||||
const SliverScreen({
|
const SliverScreen({
|
||||||
required this.title,
|
required this.title,
|
||||||
required this.appBarActions,
|
this.appBarActions = const [],
|
||||||
required this.slivers,
|
required this.slivers,
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
|
@ -36,7 +37,15 @@ class SliverScreen extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: appBarActions,
|
actions: [
|
||||||
|
...appBarActions,
|
||||||
|
if (Navigator.of(context).canPop())
|
||||||
|
IconButton(
|
||||||
|
onPressed: Navigator.of(context).pop,
|
||||||
|
icon: const Icon(Icons.close),
|
||||||
|
tooltip: S.of(context).tooltipClose,
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
...slivers,
|
...slivers,
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue