-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
1 parent
d926686
commit 612db9f
Showing
17 changed files
with
69 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import "dart:ui"; | ||
import "package:flutter/material.dart"; | ||
import "package:one_context/one_context.dart"; | ||
|
||
const Color COLOR_GRAY_LIGHT = Color.fromRGBO(150, 150, 150, 1); | ||
|
||
const Color COLOR_CLICK = Color.fromRGBO(150, 120, 100, 0.9); | ||
// Return an "action" color based on the current theme | ||
Color get COLOR_ACTION { | ||
|
||
const Color COLOR_BLUE = Color.fromRGBO(0, 0, 250, 1); | ||
BuildContext? context = OneContext().context; | ||
|
||
const Color COLOR_STAR = Color.fromRGBO(250, 250, 100, 1); | ||
if (context != null) { | ||
return Theme.of(context).indicatorColor; | ||
} else { | ||
return Colors.lightBlue; | ||
} | ||
} | ||
|
||
const Color COLOR_WARNING = Color.fromRGBO(250, 150, 50, 1); | ||
const Color COLOR_DANGER = Color.fromRGBO(250, 50, 50, 1); | ||
const Color COLOR_SUCCESS = Color.fromRGBO(50, 250, 50, 1); | ||
const Color COLOR_PROGRESS = Color.fromRGBO(50, 50, 250, 1); | ||
|
||
const Color COLOR_SELECTED = Color.fromRGBO(0, 0, 0, 0.05); | ||
const Color COLOR_PROGRESS = Color.fromRGBO(50, 50, 250, 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.