Skip to content

Commit

Permalink
Fix up colors for settings slider and drop icons
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Nov 3, 2024
1 parent f771b51 commit 52e99bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class HomePage extends StatefulWidget {
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
var theme = Theme.of(context);
return Scaffold(
body: MacMenuBar(
child: ImageDropRegion(
Expand All @@ -69,9 +70,10 @@ class _HomePageState extends State<HomePage> {
},
dropOverlay: Container(
color: Colors.transparent,
child: const Center(
child: Center(
child: Icon(
Icons.file_download,
color: theme.iconTheme.color!.withAlpha(40),
size: 400,
),
)).asGlass(
Expand Down
11 changes: 8 additions & 3 deletions lib/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,20 @@ class _SettingsWidgetState extends State<SettingsWidget> {
initialValue: _selectedPage,
clipBehavior: Clip.antiAlias,
children: SettingsPages.values.fold({}, (map, element) {
map[element] = Text(element.title);
map[element] = Text(element.title,
style: TextStyle(
color: Theme.of(context).colorScheme.primary));
return map;
}),
decoration: BoxDecoration(
color: Colors.black,
color: Theme.of(context).colorScheme.secondaryContainer,
borderRadius: BorderRadius.circular(16),
),
thumbDecoration: BoxDecoration(
color: Theme.of(context).colorScheme.secondaryContainer,
color: Theme.of(context)
.colorScheme
.primaryContainer
.withOpacity(0.6),
borderRadius: BorderRadius.circular(16),
),
customSegmentSettings: CustomSegmentSettings(
Expand Down
5 changes: 2 additions & 3 deletions lib/table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,9 @@ class _FilesTableState extends State<FilesTable> with SignalsMixin {
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: theme.focusColor,
border: Border.all(
color: theme.primaryColor.withAlpha(40),
width: 2,
color: theme.iconTheme.color!.withAlpha(40),
width: 1,
style: BorderStyle.solid),
),
child: Icon(
Expand Down

0 comments on commit 52e99bc

Please sign in to comment.