minor
This commit is contained in:
parent
2d56172c96
commit
930cdf9120
13 changed files with 31 additions and 31 deletions
|
@ -30,7 +30,8 @@ class AIcons {
|
||||||
static const display = Icons.light_mode_outlined;
|
static const display = Icons.light_mode_outlined;
|
||||||
static const error = Icons.error_outline;
|
static const error = Icons.error_outline;
|
||||||
static const folder = Icons.folder_outlined;
|
static const folder = Icons.folder_outlined;
|
||||||
static const grid = Icons.grid_on_outlined;
|
static const geoBounds = Icons.public_outlined;
|
||||||
|
static final github = MdiIcons.github;
|
||||||
static const home = Icons.home_outlined;
|
static const home = Icons.home_outlined;
|
||||||
|
|
||||||
// as of Flutter v3.16.3,
|
// as of Flutter v3.16.3,
|
||||||
|
@ -39,13 +40,15 @@ class AIcons {
|
||||||
static const important = IconData(labelImportantOutlineCodePoint, fontFamily: materialIconsFontFamily, matchTextDirection: true);
|
static const important = IconData(labelImportantOutlineCodePoint, fontFamily: materialIconsFontFamily, matchTextDirection: true);
|
||||||
|
|
||||||
static const language = Icons.translate_outlined;
|
static const language = Icons.translate_outlined;
|
||||||
|
static final legal = MdiIcons.scaleBalance;
|
||||||
static const location = Icons.place_outlined;
|
static const location = Icons.place_outlined;
|
||||||
static const locationUnlocated = Icons.location_off_outlined;
|
static const locationUnlocated = Icons.location_off_outlined;
|
||||||
static const country = Icons.flag_outlined;
|
static const country = Icons.flag_outlined;
|
||||||
static const state = Icons.flag_outlined;
|
static const state = Icons.flag_outlined;
|
||||||
static const place = Icons.place_outlined;
|
static const place = Icons.place_outlined;
|
||||||
static const mainStorage = Icons.smartphone_outlined;
|
|
||||||
static const mimeType = Icons.code_outlined;
|
static const mimeType = Icons.code_outlined;
|
||||||
|
static const name = Icons.abc_outlined;
|
||||||
|
static const newTier = Icons.fiber_new_outlined;
|
||||||
static const opacity = Icons.opacity;
|
static const opacity = Icons.opacity;
|
||||||
static const palette = Icons.palette_outlined;
|
static const palette = Icons.palette_outlined;
|
||||||
static final privacy = MdiIcons.shieldAccountOutline;
|
static final privacy = MdiIcons.shieldAccountOutline;
|
||||||
|
@ -54,15 +57,20 @@ class AIcons {
|
||||||
static final ratingRejected = MdiIcons.starMinusOutline;
|
static final ratingRejected = MdiIcons.starMinusOutline;
|
||||||
static final ratingUnrated = MdiIcons.starOffOutline;
|
static final ratingUnrated = MdiIcons.starOffOutline;
|
||||||
static const raw = Icons.raw_on_outlined;
|
static const raw = Icons.raw_on_outlined;
|
||||||
static const shooting = Icons.camera_outlined;
|
|
||||||
static const removableStorage = Icons.sd_storage_outlined;
|
|
||||||
static const sensorControlEnabled = Icons.explore_outlined;
|
static const sensorControlEnabled = Icons.explore_outlined;
|
||||||
static const sensorControlDisabled = Icons.explore_off_outlined;
|
static const sensorControlDisabled = Icons.explore_off_outlined;
|
||||||
static const settings = Icons.settings_outlined;
|
static const settings = Icons.settings_outlined;
|
||||||
|
static const shooting = Icons.camera_outlined;
|
||||||
static const size = Icons.data_usage_outlined;
|
static const size = Icons.data_usage_outlined;
|
||||||
static const text = Icons.format_quote_outlined;
|
static const storageCard = Icons.sd_storage_outlined;
|
||||||
|
static const storageMain = Icons.smartphone_outlined;
|
||||||
|
static const streamVideo = Icons.movie_outlined;
|
||||||
|
static const streamAudio = Icons.audiotrack_outlined;
|
||||||
|
static const streamText = Icons.closed_caption_outlined;
|
||||||
static const tag = Icons.local_offer_outlined;
|
static const tag = Icons.local_offer_outlined;
|
||||||
static final tagUntagged = MdiIcons.tagOffOutline;
|
static final tagUntagged = MdiIcons.tagOffOutline;
|
||||||
|
static const text = Icons.format_quote_outlined;
|
||||||
|
static const thumbnails = Icons.grid_on_outlined;
|
||||||
static const volumeMin = Icons.volume_mute_outlined;
|
static const volumeMin = Icons.volume_mute_outlined;
|
||||||
static const volumeMax = Icons.volume_up_outlined;
|
static const volumeMax = Icons.volume_up_outlined;
|
||||||
|
|
||||||
|
@ -100,7 +108,6 @@ class AIcons {
|
||||||
static const favouriteActive = Icons.favorite;
|
static const favouriteActive = Icons.favorite;
|
||||||
static final filter = MdiIcons.filterOutline;
|
static final filter = MdiIcons.filterOutline;
|
||||||
static final filterOff = MdiIcons.filterOffOutline;
|
static final filterOff = MdiIcons.filterOffOutline;
|
||||||
static const geoBounds = Icons.public_outlined;
|
|
||||||
static const goUp = Icons.arrow_upward_outlined;
|
static const goUp = Icons.arrow_upward_outlined;
|
||||||
static const hide = Icons.visibility_off_outlined;
|
static const hide = Icons.visibility_off_outlined;
|
||||||
static const info = Icons.info_outlined;
|
static const info = Icons.info_outlined;
|
||||||
|
@ -110,8 +117,7 @@ class AIcons {
|
||||||
static final move = MdiIcons.fileMoveOutline;
|
static final move = MdiIcons.fileMoveOutline;
|
||||||
static const mute = Icons.volume_off_outlined;
|
static const mute = Icons.volume_off_outlined;
|
||||||
static const unmute = Icons.volume_up_outlined;
|
static const unmute = Icons.volume_up_outlined;
|
||||||
static const name = Icons.abc_outlined;
|
static const rename = Icons.abc_outlined;
|
||||||
static const newTier = Icons.fiber_new_outlined;
|
|
||||||
static const openOutside = Icons.open_in_new_outlined;
|
static const openOutside = Icons.open_in_new_outlined;
|
||||||
static final openVideo = MdiIcons.moviePlayOutline;
|
static final openVideo = MdiIcons.moviePlayOutline;
|
||||||
static const pin = Icons.push_pin_outlined;
|
static const pin = Icons.push_pin_outlined;
|
||||||
|
@ -133,20 +139,17 @@ class AIcons {
|
||||||
static const rotateScreen = Icons.screen_rotation_outlined;
|
static const rotateScreen = Icons.screen_rotation_outlined;
|
||||||
static const search = Icons.search_outlined;
|
static const search = Icons.search_outlined;
|
||||||
static const select = Icons.select_all_outlined;
|
static const select = Icons.select_all_outlined;
|
||||||
|
static const selectStreams = Icons.translate_outlined;
|
||||||
static const setAs = Icons.wallpaper_outlined;
|
static const setAs = Icons.wallpaper_outlined;
|
||||||
|
static final setBoundEnd = MdiIcons.rayEnd;
|
||||||
|
static final setBoundStart = MdiIcons.rayStart;
|
||||||
static final setCover = MdiIcons.imageEditOutline;
|
static final setCover = MdiIcons.imageEditOutline;
|
||||||
static final setEnd = MdiIcons.rayEnd;
|
|
||||||
static final setStart = MdiIcons.rayStart;
|
|
||||||
static const share = Icons.share_outlined;
|
static const share = Icons.share_outlined;
|
||||||
static const show = Icons.visibility_outlined;
|
static const show = Icons.visibility_outlined;
|
||||||
static final showFullscreen = MdiIcons.arrowExpand;
|
static final showFullscreen = MdiIcons.arrowExpand;
|
||||||
static const slideshow = Icons.slideshow_outlined;
|
static const slideshow = Icons.slideshow_outlined;
|
||||||
static const speed = Icons.speed_outlined;
|
static const speed = Icons.speed_outlined;
|
||||||
static const stats = Icons.donut_small_outlined;
|
static const stats = Icons.donut_small_outlined;
|
||||||
static const streams = Icons.translate_outlined;
|
|
||||||
static const streamVideo = Icons.movie_outlined;
|
|
||||||
static const streamAudio = Icons.audiotrack_outlined;
|
|
||||||
static const streamText = Icons.closed_caption_outlined;
|
|
||||||
static const vaultLock = Icons.lock_outline;
|
static const vaultLock = Icons.lock_outline;
|
||||||
static const vaultAdd = Icons.enhanced_encryption_outlined;
|
static const vaultAdd = Icons.enhanced_encryption_outlined;
|
||||||
static final vaultConfigure = MdiIcons.shieldLockOutline;
|
static final vaultConfigure = MdiIcons.shieldLockOutline;
|
||||||
|
@ -190,9 +193,6 @@ class AIcons {
|
||||||
static const selected = Icons.check_circle_outline;
|
static const selected = Icons.check_circle_outline;
|
||||||
static const unselected = Icons.radio_button_unchecked;
|
static const unselected = Icons.radio_button_unchecked;
|
||||||
|
|
||||||
static final github = MdiIcons.github;
|
|
||||||
static final legal = MdiIcons.scaleBalance;
|
|
||||||
|
|
||||||
// Material Icons references to make constant instances of `IconData`
|
// Material Icons references to make constant instances of `IconData`
|
||||||
// as non-constant instances of `IconData` prevent icon font tree shaking
|
// as non-constant instances of `IconData` prevent icon font tree shaking
|
||||||
static const labelImportantOutlineCodePoint = 0xe362;
|
static const labelImportantOutlineCodePoint = 0xe362;
|
||||||
|
|
|
@ -67,7 +67,7 @@ extension ExtraChipSetActionView on ChipSetAction {
|
||||||
ChipSetAction.showCountryStates => AIcons.state,
|
ChipSetAction.showCountryStates => AIcons.state,
|
||||||
ChipSetAction.showCollection => AIcons.allCollection,
|
ChipSetAction.showCollection => AIcons.allCollection,
|
||||||
// selecting (single filter)
|
// selecting (single filter)
|
||||||
ChipSetAction.rename => AIcons.name,
|
ChipSetAction.rename => AIcons.rename,
|
||||||
ChipSetAction.setCover => AIcons.setCover,
|
ChipSetAction.setCover => AIcons.setCover,
|
||||||
ChipSetAction.configureVault => AIcons.vaultConfigure,
|
ChipSetAction.configureVault => AIcons.vaultConfigure,
|
||||||
};
|
};
|
||||||
|
|
|
@ -90,7 +90,7 @@ extension ExtraEntryActionView on EntryAction {
|
||||||
EntryAction.restore => AIcons.restore,
|
EntryAction.restore => AIcons.restore,
|
||||||
EntryAction.convert => AIcons.convert,
|
EntryAction.convert => AIcons.convert,
|
||||||
EntryAction.print => AIcons.print,
|
EntryAction.print => AIcons.print,
|
||||||
EntryAction.rename => AIcons.name,
|
EntryAction.rename => AIcons.rename,
|
||||||
EntryAction.copy => AIcons.copy,
|
EntryAction.copy => AIcons.copy,
|
||||||
EntryAction.move => AIcons.move,
|
EntryAction.move => AIcons.move,
|
||||||
EntryAction.share => AIcons.share,
|
EntryAction.share => AIcons.share,
|
||||||
|
@ -109,7 +109,7 @@ extension ExtraEntryActionView on EntryAction {
|
||||||
EntryAction.videoToggleMute =>
|
EntryAction.videoToggleMute =>
|
||||||
// different data depending on toggle state
|
// different data depending on toggle state
|
||||||
AIcons.mute,
|
AIcons.mute,
|
||||||
EntryAction.videoSelectStreams => AIcons.streams,
|
EntryAction.videoSelectStreams => AIcons.selectStreams,
|
||||||
EntryAction.videoSetSpeed => AIcons.speed,
|
EntryAction.videoSetSpeed => AIcons.speed,
|
||||||
EntryAction.videoABRepeat => AIcons.repeat,
|
EntryAction.videoABRepeat => AIcons.repeat,
|
||||||
EntryAction.videoSettings => AIcons.videoSettings,
|
EntryAction.videoSettings => AIcons.videoSettings,
|
||||||
|
|
|
@ -76,7 +76,7 @@ extension ExtraEntrySetActionView on EntrySetAction {
|
||||||
EntrySetAction.restore => AIcons.restore,
|
EntrySetAction.restore => AIcons.restore,
|
||||||
EntrySetAction.copy => AIcons.copy,
|
EntrySetAction.copy => AIcons.copy,
|
||||||
EntrySetAction.move => AIcons.move,
|
EntrySetAction.move => AIcons.move,
|
||||||
EntrySetAction.rename => AIcons.name,
|
EntrySetAction.rename => AIcons.rename,
|
||||||
EntrySetAction.convert => AIcons.convert,
|
EntrySetAction.convert => AIcons.convert,
|
||||||
EntrySetAction.toggleFavourite =>
|
EntrySetAction.toggleFavourite =>
|
||||||
// different data depending on toggle state
|
// different data depending on toggle state
|
||||||
|
|
|
@ -39,7 +39,7 @@ extension ExtraAlbumChipGroupFactorView on AlbumChipGroupFactor {
|
||||||
return switch (this) {
|
return switch (this) {
|
||||||
AlbumChipGroupFactor.importance => AIcons.important,
|
AlbumChipGroupFactor.importance => AIcons.important,
|
||||||
AlbumChipGroupFactor.mimeType => AIcons.mimeType,
|
AlbumChipGroupFactor.mimeType => AIcons.mimeType,
|
||||||
AlbumChipGroupFactor.volume => AIcons.removableStorage,
|
AlbumChipGroupFactor.volume => AIcons.storageCard,
|
||||||
AlbumChipGroupFactor.none => AIcons.clear,
|
AlbumChipGroupFactor.none => AIcons.clear,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ class AlbumSectionHeader extends StatelessWidget {
|
||||||
title: albumName ?? context.l10n.sectionUnknown,
|
title: albumName ?? context.l10n.sectionUnknown,
|
||||||
trailing: _directory != null && androidFileUtils.isOnRemovableStorage(_directory)
|
trailing: _directory != null && androidFileUtils.isOnRemovableStorage(_directory)
|
||||||
? const Icon(
|
? const Icon(
|
||||||
AIcons.removableStorage,
|
AIcons.storageCard,
|
||||||
size: 16,
|
size: 16,
|
||||||
color: Color(0xFF757575),
|
color: Color(0xFF757575),
|
||||||
)
|
)
|
||||||
|
|
|
@ -194,7 +194,7 @@ class CoveredFilterChip<T extends CollectionFilter> extends StatelessWidget {
|
||||||
padding: EdgeInsetsDirectional.only(end: padding),
|
padding: EdgeInsetsDirectional.only(end: padding),
|
||||||
duration: ADurations.chipDecorationAnimation,
|
duration: ADurations.chipDecorationAnimation,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
AIcons.removableStorage,
|
AIcons.storageCard,
|
||||||
color: _detailColor(context),
|
color: _detailColor(context),
|
||||||
size: iconSize,
|
size: iconSize,
|
||||||
),
|
),
|
||||||
|
|
|
@ -120,7 +120,7 @@ class FilterListDetails<T extends CollectionFilter> extends StatelessWidget {
|
||||||
|
|
||||||
List<Widget> leadingIcons = [
|
List<Widget> leadingIcons = [
|
||||||
if (pinned) const Icon(AIcons.pin),
|
if (pinned) const Icon(AIcons.pin),
|
||||||
if (removableStorage) const Icon(AIcons.removableStorage),
|
if (removableStorage) const Icon(AIcons.storageCard),
|
||||||
];
|
];
|
||||||
|
|
||||||
Widget? leading;
|
Widget? leading;
|
||||||
|
|
|
@ -62,5 +62,5 @@ class StorageVolumeSectionKey extends ChipSectionKey {
|
||||||
StorageVolumeSectionKey(BuildContext context, this.volume) : super(title: volume?.getDescription(context) ?? context.l10n.sectionUnknown);
|
StorageVolumeSectionKey(BuildContext context, this.volume) : super(title: volume?.getDescription(context) ?? context.l10n.sectionUnknown);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget? get leading => (volume?.isRemovable ?? false) ? const Icon(AIcons.removableStorage) : null;
|
Widget? get leading => (volume?.isRemovable ?? false) ? const Icon(AIcons.storageCard) : null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ class AlbumNavTile extends StatelessWidget {
|
||||||
title: DrawerFilterTitle(filter: filter),
|
title: DrawerFilterTitle(filter: filter),
|
||||||
trailing: androidFileUtils.isOnRemovableStorage(album)
|
trailing: androidFileUtils.isOnRemovableStorage(album)
|
||||||
? const Icon(
|
? const Icon(
|
||||||
AIcons.removableStorage,
|
AIcons.storageCard,
|
||||||
size: 16,
|
size: 16,
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
|
|
|
@ -165,7 +165,7 @@ class _FilePickerPageState extends State<FilePickerPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
...volumes.map((v) {
|
...volumes.map((v) {
|
||||||
final icon = v.isRemovable ? AIcons.removableStorage : AIcons.mainStorage;
|
final icon = v.isRemovable ? AIcons.storageCard : AIcons.storageMain;
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: Icon(icon),
|
leading: Icon(icon),
|
||||||
title: Text(v.getDescription(context)),
|
title: Text(v.getDescription(context)),
|
||||||
|
|
|
@ -18,7 +18,7 @@ class ThumbnailsSection extends SettingsSection {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget icon(BuildContext context) => SettingsTileLeading(
|
Widget icon(BuildContext context) => SettingsTileLeading(
|
||||||
icon: AIcons.grid,
|
icon: AIcons.thumbnails,
|
||||||
color: context.select<AvesColorsData, Color>((v) => v.thumbnails),
|
color: context.select<AvesColorsData, Color>((v) => v.thumbnails),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -38,13 +38,13 @@ class _VideoABRepeatOverlayState extends State<VideoABRepeatOverlay> {
|
||||||
Widget boundButton;
|
Widget boundButton;
|
||||||
if (abRepeat.start == null) {
|
if (abRepeat.start == null) {
|
||||||
boundButton = IconButton(
|
boundButton = IconButton(
|
||||||
icon: Icon(AIcons.setStart),
|
icon: Icon(AIcons.setBoundStart),
|
||||||
onPressed: controller?.setABRepeatStart,
|
onPressed: controller?.setABRepeatStart,
|
||||||
tooltip: l10n.videoRepeatActionSetStart,
|
tooltip: l10n.videoRepeatActionSetStart,
|
||||||
);
|
);
|
||||||
} else if (abRepeat.end == null) {
|
} else if (abRepeat.end == null) {
|
||||||
boundButton = IconButton(
|
boundButton = IconButton(
|
||||||
icon: Icon(AIcons.setEnd),
|
icon: Icon(AIcons.setBoundEnd),
|
||||||
onPressed: controller?.setABRepeatEnd,
|
onPressed: controller?.setABRepeatEnd,
|
||||||
tooltip: l10n.videoRepeatActionSetEnd,
|
tooltip: l10n.videoRepeatActionSetEnd,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue