Skip to content

Commit 3fe39c5

Browse files
committed
files: Use primary and not secondary for themes
1 parent d8dc378 commit 3fe39c5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/widgets/breadcrumbs_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class _LoadingIndicatorState extends State<_LoadingIndicator>
284284
painter: _LoadingIndicatorPainter(
285285
progress: progressController.value,
286286
opacity: fadeController.value,
287-
color: Theme.of(context).colorScheme.secondary,
287+
color: Theme.of(context).colorScheme.primary,
288288
),
289289
child: child,
290290
);

lib/widgets/grid.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class _FilesGridState extends State<FilesGrid> {
8080
? Utils.iconForFolder(entityInfo.path)
8181
: Utils.iconForPath(entityInfo.path),
8282
iconColor: entityInfo.isDirectory
83-
? Theme.of(context).colorScheme.secondary
83+
? Theme.of(context).colorScheme.primary
8484
: null,
8585
),
8686
),
@@ -137,7 +137,7 @@ class FileCell extends StatelessWidget {
137137
clipBehavior: Clip.antiAlias,
138138
decoration: BoxDecoration(
139139
color: selected
140-
? Theme.of(context).colorScheme.secondary.withOpacity(0.2)
140+
? Theme.of(context).colorScheme.primary.withOpacity(0.2)
141141
: Colors.transparent,
142142
borderRadius: BorderRadius.circular(4),
143143
),
@@ -160,7 +160,7 @@ class FileCell extends StatelessWidget {
160160
? Utils.iconForFolder(entity.path)
161161
: Utils.iconForPath(entity.path),
162162
iconColor: entity.isDirectory
163-
? Theme.of(context).colorScheme.secondary
163+
? Theme.of(context).colorScheme.primary
164164
: null,
165165
),
166166
),

lib/widgets/side_pane.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class _SidePaneState extends State<SidePane> {
8282
selected: widget.workspace.currentDir ==
8383
widget.destinations[index].path,
8484
selectedTileColor:
85-
Theme.of(context).colorScheme.secondary.withOpacity(0.1),
85+
Theme.of(context).colorScheme.primary.withOpacity(0.1),
8686
title: Text(
8787
widget.destinations[index].label,
8888
),

lib/widgets/table.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class FilesTable extends StatelessWidget {
143143
? Utils.iconForFolder(row.entity.path)
144144
: Utils.iconForPath(row.entity.path),
145145
color: row.entity.isDirectory
146-
? Theme.of(context).colorScheme.secondary
146+
? Theme.of(context).colorScheme.primary
147147
: Theme.of(context).colorScheme.onSurface.withOpacity(0.8),
148148
size: 64,
149149
),
@@ -348,7 +348,7 @@ class _FilesRowState extends State<_FilesRow> {
348348
),
349349
child: Material(
350350
color: widget.row.selected
351-
? Theme.of(context).colorScheme.secondary.withOpacity(0.2)
351+
? Theme.of(context).colorScheme.primary.withOpacity(0.2)
352352
: Colors.transparent,
353353
clipBehavior: Clip.antiAlias,
354354
child: TimedInkwell(
@@ -392,7 +392,7 @@ class _FilesRowState extends State<_FilesRow> {
392392
? Utils.iconForFolder(entity.path)
393393
: Utils.iconForPath(entity.path),
394394
color: entity.isDirectory
395-
? Theme.of(context).colorScheme.secondary
395+
? Theme.of(context).colorScheme.primary
396396
: null,
397397
),
398398
const SizedBox(width: 16),

0 commit comments

Comments
 (0)