mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +08:00
fix dark theme error banner background color
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
96215d32b7
commit
a5dcac137f
@ -101,6 +101,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
required this.highlight,
|
required this.highlight,
|
||||||
required this.drag_indicator,
|
required this.drag_indicator,
|
||||||
required this.shadow,
|
required this.shadow,
|
||||||
|
required this.errorBannerBg,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Color? border;
|
final Color? border;
|
||||||
@ -108,6 +109,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
final Color? highlight;
|
final Color? highlight;
|
||||||
final Color? drag_indicator;
|
final Color? drag_indicator;
|
||||||
final Color? shadow;
|
final Color? shadow;
|
||||||
|
final Color? errorBannerBg;
|
||||||
|
|
||||||
static final light = ColorThemeExtension(
|
static final light = ColorThemeExtension(
|
||||||
border: Color(0xFFCCCCCC),
|
border: Color(0xFFCCCCCC),
|
||||||
@ -115,6 +117,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
highlight: Color(0xFFE5E5E5),
|
highlight: Color(0xFFE5E5E5),
|
||||||
drag_indicator: Colors.grey[800],
|
drag_indicator: Colors.grey[800],
|
||||||
shadow: Colors.black,
|
shadow: Colors.black,
|
||||||
|
errorBannerBg: Color(0xFFFDEEEB),
|
||||||
);
|
);
|
||||||
|
|
||||||
static final dark = ColorThemeExtension(
|
static final dark = ColorThemeExtension(
|
||||||
@ -123,6 +126,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
highlight: Color(0xFF3F3F3F),
|
highlight: Color(0xFF3F3F3F),
|
||||||
drag_indicator: Colors.grey,
|
drag_indicator: Colors.grey,
|
||||||
shadow: Colors.grey,
|
shadow: Colors.grey,
|
||||||
|
errorBannerBg: Color(0xFF470F2D),
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -132,6 +136,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
Color? highlight,
|
Color? highlight,
|
||||||
Color? drag_indicator,
|
Color? drag_indicator,
|
||||||
Color? shadow,
|
Color? shadow,
|
||||||
|
Color? errorBannerBg,
|
||||||
}) {
|
}) {
|
||||||
return ColorThemeExtension(
|
return ColorThemeExtension(
|
||||||
border: border ?? this.border,
|
border: border ?? this.border,
|
||||||
@ -139,6 +144,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
highlight: highlight ?? this.highlight,
|
highlight: highlight ?? this.highlight,
|
||||||
drag_indicator: drag_indicator ?? this.drag_indicator,
|
drag_indicator: drag_indicator ?? this.drag_indicator,
|
||||||
shadow: shadow ?? this.shadow,
|
shadow: shadow ?? this.shadow,
|
||||||
|
errorBannerBg: errorBannerBg ?? this.errorBannerBg,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,6 +160,7 @@ class ColorThemeExtension extends ThemeExtension<ColorThemeExtension> {
|
|||||||
highlight: Color.lerp(highlight, other.highlight, t),
|
highlight: Color.lerp(highlight, other.highlight, t),
|
||||||
drag_indicator: Color.lerp(drag_indicator, other.drag_indicator, t),
|
drag_indicator: Color.lerp(drag_indicator, other.drag_indicator, t),
|
||||||
shadow: Color.lerp(shadow, other.shadow, t),
|
shadow: Color.lerp(shadow, other.shadow, t),
|
||||||
|
errorBannerBg: Color.lerp(shadow, other.errorBannerBg, t),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ class _AddressBookState extends State<AddressBook> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
height: height,
|
height: height,
|
||||||
color: Color.fromARGB(255, 253, 238, 235),
|
color: MyTheme.color(context).errorBannerBg,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
Loading…
Reference in New Issue
Block a user