mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Improve position scale alignment in fullscreen
This commit is contained in:
8
clapper_src/controls.js
vendored
8
clapper_src/controls.js
vendored
@@ -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);
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user