mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
oledBlack text color fix
This commit is contained in:
parent
0a810987c0
commit
7aad7cb9e3
2 changed files with 87 additions and 5 deletions
|
@ -9,6 +9,7 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|||
import 'package:stackwallet/utilities/theme/dark_colors.dart';
|
||||
import 'package:stackwallet/utilities/theme/light_colors.dart';
|
||||
import 'package:stackwallet/utilities/theme/ocean_breeze_colors.dart';
|
||||
import 'package:stackwallet/utilities/theme/oled_black_colors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -432,6 +433,87 @@ class _ThemeOptionsView extends ConsumerState<ThemeOptionsView> {
|
|||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
MaterialButton(
|
||||
splashColor: Colors.transparent,
|
||||
hoverColor: Colors.transparent,
|
||||
padding: const EdgeInsets.all(0),
|
||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
DB.instance.put<dynamic>(
|
||||
boxName: DB.boxNameTheme,
|
||||
key: "colorScheme",
|
||||
value: ThemeType.oledBlack.name,
|
||||
);
|
||||
ref.read(colorThemeProvider.state).state =
|
||||
StackColors.fromStackColorTheme(
|
||||
OledBlackColors(),
|
||||
);
|
||||
|
||||
setState(() {
|
||||
_selectedTheme = "oledBlack";
|
||||
});
|
||||
},
|
||||
child: SizedBox(
|
||||
width: 200,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 10,
|
||||
height: 10,
|
||||
child: Radio(
|
||||
activeColor: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.radioButtonIconEnabled,
|
||||
value: "oledBlack",
|
||||
groupValue: _selectedTheme,
|
||||
onChanged: (newValue) {
|
||||
if (newValue is String && newValue == "oledBlack") {
|
||||
DB.instance.put<dynamic>(
|
||||
boxName: DB.boxNameTheme,
|
||||
key: "colorScheme",
|
||||
value: ThemeType.oledBlack.name,
|
||||
);
|
||||
ref.read(colorThemeProvider.state).state =
|
||||
StackColors.fromStackColorTheme(
|
||||
OledBlackColors(),
|
||||
);
|
||||
|
||||
setState(() {
|
||||
_selectedTheme = "oledBlack";
|
||||
});
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14,
|
||||
),
|
||||
Text(
|
||||
"OLED Black",
|
||||
style:
|
||||
STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.textDark2,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -33,17 +33,17 @@ class OledBlackColors extends StackColorTheme {
|
|||
Color get shadow => const Color(0x0F2D3132); //not done yet
|
||||
|
||||
@override
|
||||
Color get textDark => const Color(0xFF2D3132);
|
||||
Color get textDark => const Color(0xFFDEDEDE);
|
||||
@override
|
||||
Color get textDark2 => const Color(0xFFDEDEDE);
|
||||
Color get textDark2 => const Color(0xFFCCCCCC);
|
||||
@override
|
||||
Color get textDark3 => const Color(0xFFCCCCCC);
|
||||
Color get textDark3 => const Color(0xFFB2B2B2);
|
||||
@override
|
||||
Color get textSubtitle1 => const Color(0xFFB2B2B2);
|
||||
@override
|
||||
Color get textSubtitle2 => const Color(0xFFB2B2B2);
|
||||
Color get textSubtitle2 => const Color(0xFFA0A0A0);
|
||||
@override
|
||||
Color get textSubtitle3 => const Color(0xFFA0A0A0);
|
||||
Color get textSubtitle3 => const Color(0xFF878A8A);
|
||||
@override
|
||||
Color get textSubtitle4 => const Color(0xFF878A8A);
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue