2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 03:35:28 +00:00

Improvements for dark mode (#322)

* Action colors are now determined based on theme

* Fix unused import

* Update some more colors based on theme

* Updated release notes

* Better color choice

* Update for home screen

* Updates for app drawer

* remove unused import
This commit is contained in:
Oliver
2023-04-18 23:07:24 +10:00
committed by GitHub
parent d926686a89
commit 612db9f194
17 changed files with 69 additions and 92 deletions

View File

@ -165,7 +165,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
ListTile(
title: Text(L10().releaseNotes),
subtitle: Text(L10().appReleaseNotes),
leading: FaIcon(FontAwesomeIcons.fileLines, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.fileLines, color: COLOR_ACTION),
onTap: () {
_releaseNotes(context);
},
@ -176,7 +176,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
ListTile(
title: Text(L10().credits),
subtitle: Text(L10().appCredits),
leading: FaIcon(FontAwesomeIcons.bullhorn, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.bullhorn, color: COLOR_ACTION),
onTap: () {
_credits(context);
}
@ -187,7 +187,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
ListTile(
title: Text(L10().documentation),
subtitle: Text("https://docs.inventree.org"),
leading: FaIcon(FontAwesomeIcons.book, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.book, color: COLOR_ACTION),
onTap: () {
_openDocs();
},
@ -198,7 +198,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
ListTile(
title: Text(L10().translate),
subtitle: Text(L10().translateHelp),
leading: FaIcon(FontAwesomeIcons.language, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.language, color: COLOR_ACTION),
onTap: () {
_translate();
}
@ -209,7 +209,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
ListTile(
title: Text(L10().reportBug),
subtitle: Text(L10().reportBugDescription),
leading: FaIcon(FontAwesomeIcons.bug, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.bug, color: COLOR_ACTION),
onTap: () {
_reportBug(context);
},

View File

@ -137,7 +137,7 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
title: Text(
profile.name,
),
tileColor: profile.selected ? COLOR_SELECTED : null,
tileColor: profile.selected ? Theme.of(context).secondaryHeaderColor : null,
subtitle: Text("${profile.server}"),
trailing: _getProfileIcon(profile),
onTap: () {

View File

@ -47,7 +47,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
ListTile(
title: Text(L10().server),
subtitle: Text(L10().configureServer),
leading: FaIcon(FontAwesomeIcons.server, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.server, color: COLOR_ACTION),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeLoginSettingsWidget()));
},
@ -55,7 +55,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
ListTile(
title: Text(L10().appSettings),
subtitle: Text(L10().appSettingsDetails),
leading: FaIcon(FontAwesomeIcons.gears, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.gears, color: COLOR_ACTION),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeAppSettingsWidget()));
}
@ -63,7 +63,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
ListTile(
title: Text(L10().homeScreen),
subtitle: Text(L10().homeScreenSettings),
leading: FaIcon(FontAwesomeIcons.house, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.house, color: COLOR_ACTION),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => HomeScreenSettingsWidget()));
}
@ -71,7 +71,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
ListTile(
title: Text(L10().part),
subtitle: Text(L10().partSettings),
leading: FaIcon(FontAwesomeIcons.shapes, color: COLOR_CLICK),
leading: FaIcon(FontAwesomeIcons.shapes, color: COLOR_ACTION),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreePartSettingsWidget()));
}
@ -79,7 +79,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
Divider(),
ListTile(
title: Text(L10().about),
leading: FaIcon(FontAwesomeIcons.circleInfo),
leading: FaIcon(FontAwesomeIcons.circleInfo, color: COLOR_ACTION),
onTap: _about,
)
]