mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
WIP: icon color change
This commit is contained in:
parent
b09ee79865
commit
ab28a93699
2 changed files with 42 additions and 0 deletions
|
@ -19,6 +19,7 @@ class _DesktopSettingsViewState extends ConsumerState<DesktopSettingsView> {
|
||||||
int currentViewIndex = 0;
|
int currentViewIndex = 0;
|
||||||
final List<Widget> contentViews = [
|
final List<Widget> contentViews = [
|
||||||
const Navigator(
|
const Navigator(
|
||||||
|
key: Key("settingsBackupRestoreDesktopKey"),
|
||||||
onGenerateRoute: RouteGenerator.generateRoute,
|
onGenerateRoute: RouteGenerator.generateRoute,
|
||||||
initialRoute: BackupRestore.routeName,
|
initialRoute: BackupRestore.routeName,
|
||||||
), //b+r
|
), //b+r
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/pages_desktop_specific/home/settings_menu_item.dart';
|
import 'package:stackwallet/pages_desktop_specific/home/settings_menu_item.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
|
||||||
class SettingsMenu extends ConsumerStatefulWidget {
|
class SettingsMenu extends ConsumerStatefulWidget {
|
||||||
|
@ -65,6 +66,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 0
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Backup and restore",
|
label: "Backup and restore",
|
||||||
value: 0,
|
value: 0,
|
||||||
|
@ -79,6 +85,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 1
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Security",
|
label: "Security",
|
||||||
value: 1,
|
value: 1,
|
||||||
|
@ -93,6 +104,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 2
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Currency",
|
label: "Currency",
|
||||||
value: 2,
|
value: 2,
|
||||||
|
@ -107,6 +123,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 3
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Language",
|
label: "Language",
|
||||||
value: 3,
|
value: 3,
|
||||||
|
@ -121,6 +142,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 4
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Nodes",
|
label: "Nodes",
|
||||||
value: 4,
|
value: 4,
|
||||||
|
@ -135,6 +161,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 5
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Syncing preferences",
|
label: "Syncing preferences",
|
||||||
value: 5,
|
value: 5,
|
||||||
|
@ -149,6 +180,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 6
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Appearance",
|
label: "Appearance",
|
||||||
value: 6,
|
value: 6,
|
||||||
|
@ -163,6 +199,11 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Assets.svg.polygon,
|
Assets.svg.polygon,
|
||||||
width: 11,
|
width: 11,
|
||||||
height: 11,
|
height: 11,
|
||||||
|
color: selectedMenuItem == 7
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorBlue
|
||||||
|
: Colors.transparent,
|
||||||
),
|
),
|
||||||
label: "Advanced",
|
label: "Advanced",
|
||||||
value: 7,
|
value: 7,
|
||||||
|
|
Loading…
Reference in a new issue