mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
Add a custom separator above speed scale
Let users know what this scale does by having a separator with a "speed" label
This commit is contained in:
@@ -5,6 +5,9 @@ scale marks {
|
||||
radio {
|
||||
margin-left: -2px;
|
||||
}
|
||||
separator {
|
||||
background: @insensitive_fg_color;
|
||||
}
|
||||
.osd popover box {
|
||||
text-shadow: none;
|
||||
font-size: 21px;
|
||||
|
23
src/controls.js
vendored
23
src/controls.js
vendored
@@ -319,6 +319,29 @@ class ClapperControls extends Gtk.Box
|
||||
elapsedRevealer.set_reveal_child(true);
|
||||
this.revealersArr.push(elapsedRevealer);
|
||||
|
||||
const speedSeparatorBox = new Gtk.Box({
|
||||
orientation: Gtk.Orientation.HORIZONTAL,
|
||||
hexpand: true,
|
||||
});
|
||||
const speedLabel = new Gtk.Label({
|
||||
label: 'speed',
|
||||
halign: Gtk.Align.CENTER,
|
||||
});
|
||||
const leftSeparator = new Gtk.Separator({
|
||||
orientation: Gtk.Orientation.HORIZONTAL,
|
||||
hexpand: true,
|
||||
valign: Gtk.Align.CENTER,
|
||||
});
|
||||
const rightSeparator = new Gtk.Separator({
|
||||
orientation: Gtk.Orientation.HORIZONTAL,
|
||||
hexpand: true,
|
||||
valign: Gtk.Align.CENTER,
|
||||
});
|
||||
speedSeparatorBox.append(leftSeparator);
|
||||
speedSeparatorBox.append(speedLabel);
|
||||
speedSeparatorBox.append(rightSeparator);
|
||||
this.elapsedButton.popoverBox.append(speedSeparatorBox);
|
||||
|
||||
const speedScale = new Gtk.Scale({
|
||||
orientation: Gtk.Orientation.HORIZONTAL,
|
||||
value_pos: Gtk.PositionType.BOTTOM,
|
||||
|
Reference in New Issue
Block a user