|
@@ -1,4 +1,4 @@
|
|
|
-// Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
|
|
|
+// Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
|
|
|
//
|
|
|
// THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
|
// AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
|
|
@@ -61,7 +61,7 @@ final ThemeData darkTheme = ThemeData(
|
|
|
brightness: Brightness.dark,
|
|
|
scaffoldBackgroundColor: Colors.black,
|
|
|
colorScheme: const ColorScheme.dark(
|
|
|
- primary: Color(0xFF222429),
|
|
|
+ primary: Colors.blue,
|
|
|
surface: Color(0xFF222429),
|
|
|
onPrimary: Colors.white,
|
|
|
onSecondary: Colors.white),
|
|
@@ -80,4 +80,24 @@ final ThemeData darkTheme = ThemeData(
|
|
|
systemOverlayStyle:
|
|
|
SystemUiOverlayStyle(systemNavigationBarColor: Color(0xFF222429))),
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
|
- style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));
|
|
|
+ style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)),
|
|
|
+ switchTheme: SwitchThemeData(
|
|
|
+ thumbColor: WidgetStateProperty.resolveWith((status){
|
|
|
+ if(status.contains(WidgetState.selected)) {
|
|
|
+ return Colors.blue;
|
|
|
+ }
|
|
|
+ return Colors.grey.shade400;
|
|
|
+ } ),
|
|
|
+ trackColor: WidgetStateProperty.resolveWith((status){
|
|
|
+ if(status.contains(WidgetState.selected)) {
|
|
|
+ return Colors.blue.shade50;
|
|
|
+ }
|
|
|
+ return Colors.grey.shade100;
|
|
|
+ }),
|
|
|
+ trackOutlineColor: WidgetStateProperty.resolveWith((status){
|
|
|
+ if(status.contains(WidgetState.selected)) {
|
|
|
+ return Colors.blue.shade50;
|
|
|
+ }
|
|
|
+ return Colors.grey.shade100;
|
|
|
+ }),
|
|
|
+ ));
|