Skip to content

Commit 7ddc90a

Browse files
authored
Merge pull request #400 from immichFrame/dev.3rob3.progressbar
add progressbar setting
2 parents a75621c + 610f8fd commit 7ddc90a

11 files changed

Lines changed: 13 additions & 1 deletion

File tree

ImmichFrame.Core/Interfaces/IServerSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public interface IGeneralSettings
3939
public int RenewImagesDuration { get; }
4040
public bool ShowClock { get; }
4141
public string? ClockFormat { get; }
42+
public bool ShowProgressBar { get; }
4243
public bool ShowPhotoDate { get; }
4344
public string? PhotoDateFormat { get; }
4445
public bool ShowImageDesc { get; }

ImmichFrame.WebApi.Tests/Resources/TestV1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"RefreshAlbumPeopleInterval": 7,
3333
"ShowClock": true,
3434
"ClockFormat": "ClockFormat_TEST",
35+
"ShowProgressBar": true,
3536
"ShowPhotoDate": true,
3637
"PhotoDateFormat": "PhotoDateFormat_TEST",
3738
"ShowImageDesc": true,

ImmichFrame.WebApi.Tests/Resources/TestV2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"TransitionDuration": 7.7,
2020
"ShowClock": true,
2121
"ClockFormat": "ClockFormat_TEST",
22+
"ShowProgressBar": true,
2223
"ShowPhotoDate": true,
2324
"ShowImageDesc": true,
2425
"ShowPeopleDesc": true,

ImmichFrame.WebApi/Helpers/Config/ServerSettingsV1.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class ServerSettingsV1 : IConfigSettable
3535
public double TransitionDuration { get; set; } = 1;
3636
public bool ShowClock { get; set; } = true;
3737
public string? ClockFormat { get; set; } = "hh:mm";
38+
public bool ShowProgressBar { get; set; } = true;
3839
public bool ShowPhotoDate { get; set; } = true;
3940
public string? PhotoDateFormat { get; set; } = "MM/dd/yyyy";
4041
public bool ShowImageDesc { get; set; } = true;
@@ -97,6 +98,7 @@ class GeneralSettingsV1Adapter(ServerSettingsV1 _delegate) : IGeneralSettings
9798
public int RenewImagesDuration => _delegate.RenewImagesDuration;
9899
public bool ShowClock => _delegate.ShowClock;
99100
public string? ClockFormat => _delegate.ClockFormat;
101+
public bool ShowProgressBar => _delegate.ShowProgressBar;
100102
public bool ShowPhotoDate => _delegate.ShowPhotoDate;
101103
public string? PhotoDateFormat => _delegate.PhotoDateFormat;
102104
public bool ShowImageDesc => _delegate.ShowImageDesc;

ImmichFrame.WebApi/Models/ServerSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class GeneralSettings : IGeneralSettings, IConfigSettable
2626
public double TransitionDuration { get; set; } = 1;
2727
public bool ShowClock { get; set; } = true;
2828
public string? ClockFormat { get; set; } = "hh:mm";
29+
public bool ShowProgressBar { get; set; } = true;
2930
public bool ShowPhotoDate { get; set; } = true;
3031
public bool ShowImageDesc { get; set; } = true;
3132
public bool ShowPeopleDesc { get; set; } = true;

Install_Web.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ services:
6161
# RefreshAlbumPeopleInterval: "12"
6262
# ShowClock: "true"
6363
# ClockFormat: "hh:mm"
64+
# ShowProgressBar: "true"
6465
# ShowPhotoDate: "true"
6566
# PhotoDateFormat: "yyyy-MM-dd"
6667
# ShowImageDesc: "true"

docker/Settings.example.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"TransitionDuration": 2,
1818
"ShowClock": true,
1919
"ClockFormat": "hh:mm",
20+
"ShowProgressBar": true,
2021
"ShowPhotoDate": true,
2122
"ShowImageDesc": true,
2223
"ShowPeopleDesc": true,

docker/example.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ApiKey=KEY
2222
# RefreshAlbumPeopleInterval=12
2323
# ShowClock=true
2424
# ClockFormat=hh:mm
25+
# ShowProgressBar=true
2526
# ShowPhotoDate=true
2627
# PhotoDateFormat=yyyy-MM-dd
2728
# ShowImageDesc=true

docs/docs/getting-started/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Defaults are below, only one account with `ImmichServerUrl` and `ApiKey` are req
4949
"ShowClock": true, // boolean
5050
// Time format
5151
"ClockFormat": "hh:mm", // string
52+
// Displays the progress bar.
53+
"ShowProgressBar": true, // boolean
5254
// Displays the date of the current image.
5355
"ShowPhotoDate": true, // boolean
5456
// Displays the description of the current image.

immichFrame.Web/src/lib/components/home-page/home-page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
<ProgressBar
406406
autoplay
407407
duration={$configStore.interval}
408-
hidden={false}
408+
hidden={!$configStore.showProgressBar}
409409
location={ProgressBarLocation.Bottom}
410410
bind:this={progressBar}
411411
bind:status={progressBarStatus}

0 commit comments

Comments
 (0)