Improve position scale alignment in fullscreen

This commit is contained in:
Rafostar
2020-10-19 13:27:41 +02:00
parent 82840d5852
commit 4dea498f37
2 changed files with 9 additions and 7 deletions

View File

@@ -202,13 +202,6 @@ var Controls = GObject.registerClass({
visible: false, visible: false,
}); });
this.togglePlayButton.bind_property('margin_top',
this.positionScale, 'margin_top', GObject.BindingFlags.SYNC_CREATE
);
this.togglePlayButton.bind_property('margin_bottom',
this.positionScale, 'margin_bottom', GObject.BindingFlags.SYNC_CREATE
);
this.positionScale.add_css_class('positionscale'); this.positionScale.add_css_class('positionscale');
this.positionScale.connect('value-changed', this._onPositionScaleValueChanged.bind(this)); this.positionScale.connect('value-changed', this._onPositionScaleValueChanged.bind(this));
@@ -224,6 +217,7 @@ var Controls = GObject.registerClass({
let box = new Gtk.Box({ let box = new Gtk.Box({
orientation: Gtk.Orientation.HORIZONTAL, orientation: Gtk.Orientation.HORIZONTAL,
hexpand: true, hexpand: true,
valign: Gtk.Align.CENTER,
can_focus: false, can_focus: false,
}); });
box.append(this.positionScale); box.append(this.positionScale);

View File

@@ -66,7 +66,15 @@ scale marks {
border-color: transparent; border-color: transparent;
box-shadow: none; box-shadow: none;
} }
.osd .positionscale {
margin-top: 2px;
}
.osd .positionscale trough highlight { .osd .positionscale trough highlight {
border-radius: 3px;
min-height: 22px;
}
.osd .positionscale.dragging trough highlight {
border-radius: 3px;
min-height: 22px; min-height: 22px;
} }