mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 18:35:28 +03:00
stableee
This commit is contained in:
@@ -59,8 +59,8 @@ class AppStrings {
|
|||||||
String get disabled => _ru ? 'Выключено' : 'Disabled';
|
String get disabled => _ru ? 'Выключено' : 'Disabled';
|
||||||
String get hapticFeedback => _ru ? 'Тактильная отдача' : 'Haptic Feedback';
|
String get hapticFeedback => _ru ? 'Тактильная отдача' : 'Haptic Feedback';
|
||||||
String get vibrationOnInteractions => _ru ? 'Вибрация при взаимодействии' : 'Vibration on interactions';
|
String get vibrationOnInteractions => _ru ? 'Вибрация при взаимодействии' : 'Vibration on interactions';
|
||||||
String get biometricLock => _ru ? 'Биометрическая блокировка' : 'Biometric Lock';
|
String get biometricLock => _ru ? 'Биометрия' : 'Biometric Lock';
|
||||||
String get requireFingerprint => _ru ? 'Требовать отпечаток при запуске' : 'Require fingerprint on app launch';
|
String get requireFingerprint => _ru ? 'Отпечаток при запуске' : 'Require fingerprint to unlock';
|
||||||
String get currency => _ru ? 'Валюта' : 'Currency';
|
String get currency => _ru ? 'Валюта' : 'Currency';
|
||||||
String get amountFormat => _ru ? 'Формат суммы' : 'Amount Format';
|
String get amountFormat => _ru ? 'Формат суммы' : 'Amount Format';
|
||||||
String get language => _ru ? 'Язык' : 'Language';
|
String get language => _ru ? 'Язык' : 'Language';
|
||||||
@@ -136,7 +136,7 @@ class AppStrings {
|
|||||||
|
|
||||||
// ── Color editor overlay ──
|
// ── Color editor overlay ──
|
||||||
String get colorPrimary => _ru ? 'Основной' : 'Primary';
|
String get colorPrimary => _ru ? 'Основной' : 'Primary';
|
||||||
String get colorSecondary => _ru ? 'Вторичный' : 'Secondary';
|
String get colorSecondary => _ru ? 'Второй' : 'Secondary';
|
||||||
String get colorSolid => _ru ? 'Однотон' : 'Solid';
|
String get colorSolid => _ru ? 'Однотон' : 'Solid';
|
||||||
String get gradientLinear => _ru ? 'Линейный' : 'Linear';
|
String get gradientLinear => _ru ? 'Линейный' : 'Linear';
|
||||||
String get gradientReverse => _ru ? 'Обратный' : 'Reverse';
|
String get gradientReverse => _ru ? 'Обратный' : 'Reverse';
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ 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(0xFF2D1B69);
|
static const defaultPrimary = Color(0xFFD3B3C2);
|
||||||
static const defaultSecondary = Color(0xFF8B5CF6);
|
static const defaultSecondary = Color(0xFF937070);
|
||||||
|
|
||||||
static const defaultPrimaryLight = Color(0xFF2D1B69);
|
static const defaultPrimaryLight = Color(0xFF6A6482);
|
||||||
static const defaultSecondaryLight = Color(0xFF8B5CF6);
|
static const defaultSecondaryLight = Color(0xFF000000);
|
||||||
|
|
||||||
static const defaultGradient = GradientType.sweep;
|
static const defaultGradient = GradientType.sweep;
|
||||||
|
|
||||||
|
|||||||
@@ -36,24 +36,13 @@ class _CategoriesScreenState extends ConsumerState<CategoriesScreen> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Column(
|
title: Text(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
s.categories,
|
s.categories,
|
||||||
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
|
||||||
s.expenses,
|
|
||||||
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
|
||||||
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
actions: [
|
actions: [
|
||||||
_ChartToggle(
|
_ChartToggle(
|
||||||
selected: _chartType,
|
selected: _chartType,
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ import '../../settings/provider.dart';
|
|||||||
import '../provider.dart';
|
import '../provider.dart';
|
||||||
import 'balance_card.dart';
|
import 'balance_card.dart';
|
||||||
|
|
||||||
|
String _colorToHex(Color color) {
|
||||||
|
final hex = color.value.toRadixString(16).padLeft(8, '0').toUpperCase();
|
||||||
|
return hex.substring(2);
|
||||||
|
}
|
||||||
|
|
||||||
class FullScreenBlurOverlay extends StatefulWidget {
|
class FullScreenBlurOverlay extends StatefulWidget {
|
||||||
final dynamic dashboardState;
|
final dynamic dashboardState;
|
||||||
final BuildContext context;
|
final BuildContext context;
|
||||||
@@ -305,7 +310,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
|||||||
),
|
),
|
||||||
const SizedBox(width: 5),
|
const SizedBox(width: 5),
|
||||||
Text(
|
Text(
|
||||||
'#${dash.tempPrimary.value.toRadixString(16).substring(2).toUpperCase()}',
|
'#${_colorToHex(dash.tempPrimary)}',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
fontFamily: 'monospace',
|
fontFamily: 'monospace',
|
||||||
@@ -337,7 +342,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'#${dash.tempSecondary.value.toRadixString(16).substring(2).toUpperCase()}',
|
'#${_colorToHex(dash.tempSecondary)}',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
fontFamily: 'monospace',
|
fontFamily: 'monospace',
|
||||||
|
|||||||
@@ -75,24 +75,13 @@ class SettingsScreen extends ConsumerWidget {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Column(
|
title: Text(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
s.settings,
|
s.settings,
|
||||||
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
|
||||||
s.managePreferences,
|
|
||||||
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
|
||||||
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: ListView(
|
||||||
physics: const ClampingScrollPhysics(),
|
physics: const ClampingScrollPhysics(),
|
||||||
|
|||||||
Reference in New Issue
Block a user