mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
update
This commit is contained in:
@@ -8,13 +8,13 @@ class CardColorService {
|
|||||||
static const _key2 = 'card_color_secondary';
|
static const _key2 = 'card_color_secondary';
|
||||||
static const _keyGradient = 'card_gradient_type';
|
static const _keyGradient = 'card_gradient_type';
|
||||||
|
|
||||||
static const defaultPrimary = Color(0xFFFCD34D);
|
static const defaultPrimary = Color(0xFFBEF264);
|
||||||
static const defaultSecondary = Color(0xFFDC2626);
|
static const defaultSecondary = Color(0xFF4D7C0F);
|
||||||
|
|
||||||
static const defaultPrimaryLight = Color(0xFF6A6482);
|
static const defaultPrimaryLight = Color(0xFF6A6482);
|
||||||
static const defaultSecondaryLight = Color(0xFF000000);
|
static const defaultSecondaryLight = Color(0xFF000000);
|
||||||
|
|
||||||
static const defaultGradient = GradientType.linear;
|
static const defaultGradient = GradientType.radial;
|
||||||
|
|
||||||
static Future<(Color, Color, GradientType)> load({int? accountId}) async {
|
static Future<(Color, Color, GradientType)> load({int? accountId}) async {
|
||||||
final prefs = await SharedPreferences.getInstance();
|
final prefs = await SharedPreferences.getInstance();
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
|
|||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 10,
|
horizontal: 8,
|
||||||
vertical: 8,
|
vertical: 8,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -318,26 +318,30 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
|
|||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 4),
|
||||||
Text(
|
Flexible(
|
||||||
entry.$1,
|
child: Text(
|
||||||
style: TextStyle(
|
entry.$1,
|
||||||
fontSize: 11,
|
style: TextStyle(
|
||||||
color: isSelected
|
fontSize: 11,
|
||||||
? const Color(0xFF7C6DED)
|
color: isSelected
|
||||||
: Theme.of(widget.context)
|
? const Color(0xFF7C6DED)
|
||||||
.colorScheme
|
: Theme.of(widget.context)
|
||||||
.onSurface
|
.colorScheme
|
||||||
.withOpacity(0.6),
|
.onSurface
|
||||||
|
.withOpacity(0.6),
|
||||||
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
if (isSelected) ...[
|
||||||
if (isSelected)
|
const SizedBox(width: 4),
|
||||||
const Icon(
|
const Icon(
|
||||||
Icons.check_rounded,
|
Icons.check_rounded,
|
||||||
size: 14,
|
size: 14,
|
||||||
color: Color(0xFF7C6DED),
|
color: Color(0xFF7C6DED),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user