Add preferences dialog

Allows customizing various settings. For now it includes player seeking times and mode customization. More options will be added in the future.
This commit is contained in:
Rafostar
2020-10-25 10:14:14 +01:00
parent 576440faff
commit 9354042379
13 changed files with 460 additions and 111 deletions

View File

@@ -322,17 +322,8 @@ var Widget = GObject.registerClass({
if(this.controls.currentDuration === duration)
return;
let increment = (duration < 1)
? 0
: (duration < 100)
? 1
: duration / 100;
this.controls.positionAdjustment.set_upper(duration);
this.controls.positionAdjustment.set_step_increment(increment);
this.controls.positionAdjustment.set_page_increment(increment);
this.controls.currentDuration = duration;
this.controls.positionAdjustment.set_upper(duration);
this.controls.durationFormated = Misc.getFormatedTime(duration);
this.controls.updateElapsedLabel();
}
@@ -341,7 +332,7 @@ var Widget = GObject.registerClass({
{
if(
!this.isSeekable
|| this.controls.isPositionSeeking
|| this.controls.isPositionDragging
|| !player.seek_done
)
return;