Skip to content

Commit 07db6f2

Browse files
committed
fix: progress bar background missing
1 parent e87ece2 commit 07db6f2

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

smoc.Tests/TestInfra/ContextExtensions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ public static TerminalGuiFluentTesting.TestContext ConfigureDefaultTheme(this Te
7070
}
7171
}
7272
},
73+
{
74+
"ProgressBar": {
75+
"Normal": {
76+
"Foreground": "#ebdbb2",
77+
"Background": "#394e4e"
78+
}
79+
}
80+
},
7381
{
7482
"StatusBar": {
7583
"Normal": {

smoc/Resources/config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
}
2424
}
2525
},
26+
{
27+
"ProgressBar": {
28+
"Normal": {
29+
"Foreground": "#ebdbb2",
30+
"Background": "#394e4e"
31+
}
32+
}
33+
},
2634
{
2735
"Base": {
2836
"Normal": {

smoc/Ui/NowPlayingBar.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ public NowPlayingBar(IMainWindow mainWindow, IPlaybackQueueService playbackQueue
9797
X = Pos.Right(_positionLabel),
9898
Y = Pos.Absolute(2),
9999
Width = Dim.Fill() - Dim.Func((view) => view!.Frame.Width, _durationLabel),
100-
ProgressBarStyle = ProgressBarStyle.Continuous
100+
ProgressBarStyle = ProgressBarStyle.Continuous,
101+
SchemeName = "ProgressBar",
102+
Fraction = 0.5f
101103
};
102-
103-
_progressBar.Fraction = 0.5f;
104104
_progressBar.Margin!.Thickness = new Thickness(1, 0, 1, 0);
105105

106106
_volumeLabel = new Label() {

smoc/Ui/NowPlayingView.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ public NowPlayingView(IMainWindow mainWindow, CommandService commandService, IPl
9393
};
9494
_progressBar = new ProgressBar() {
9595
Width = Dim.Fill(),
96-
ProgressBarStyle = ProgressBarStyle.Continuous
96+
ProgressBarStyle = ProgressBarStyle.Continuous,
97+
SchemeName = "ProgressBar"
9798
};
9899
_positionLabel = new Label() {
99100
X = Pos.Absolute(0),

0 commit comments

Comments
 (0)