mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Few small CSS optimizations for new Adwaita theme
This commit is contained in:
@@ -6,10 +6,16 @@ radio {
|
|||||||
margin-left: -2px;
|
margin-left: -2px;
|
||||||
}
|
}
|
||||||
/* Adwaita is missing osd ListBox */
|
/* Adwaita is missing osd ListBox */
|
||||||
.osd list {
|
.playlistrow {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.playlistrow {
|
||||||
|
color: @theme_fg_color;
|
||||||
|
}
|
||||||
|
.osd .playlist {
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
.osd list row image {
|
.osd .playlist row image {
|
||||||
-gtk-icon-shadow: none;
|
-gtk-icon-shadow: none;
|
||||||
}
|
}
|
||||||
.osdheaderbar {
|
.osdheaderbar {
|
||||||
@@ -28,18 +34,15 @@ radio {
|
|||||||
.linkedright image {
|
.linkedright image {
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
/* Non-osd style for popover menu */
|
|
||||||
.menupopover label {
|
/* Flat popovers */
|
||||||
color: @theme_text_color;
|
popover arrow,
|
||||||
}
|
popover contents {
|
||||||
.menupopover arrow {
|
border-color: transparent;
|
||||||
background: @theme_base_color;
|
box-shadow: none;
|
||||||
border-color: @insensitive_base_color;
|
|
||||||
}
|
|
||||||
.menupopover contents {
|
|
||||||
background: @theme_base_color;
|
|
||||||
border-color: @insensitive_base_color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Rounded corners */
|
||||||
.adwrounded.csd {
|
.adwrounded.csd {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
@@ -167,9 +170,6 @@ scale trough slider {
|
|||||||
margin-right: -4px;
|
margin-right: -4px;
|
||||||
}
|
}
|
||||||
.positionscale trough highlight {
|
.positionscale trough highlight {
|
||||||
min-height: 4px;
|
|
||||||
}
|
|
||||||
.osd .positionscale trough highlight {
|
|
||||||
min-height: 6px;
|
min-height: 6px;
|
||||||
}
|
}
|
||||||
.fullscreen.tvmode .positionscale trough slider {
|
.fullscreen.tvmode .positionscale trough slider {
|
||||||
@@ -234,6 +234,9 @@ scale trough slider {
|
|||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
margin-bottom: -6px;
|
margin-bottom: -6px;
|
||||||
}
|
}
|
||||||
|
.volumescale trough highlight {
|
||||||
|
min-width: 4px;
|
||||||
|
}
|
||||||
.fullscreen.tvmode .volumescale trough highlight {
|
.fullscreen.tvmode .volumescale trough highlight {
|
||||||
min-width: 6px;
|
min-width: 6px;
|
||||||
}
|
}
|
||||||
@@ -251,6 +254,9 @@ scale trough slider {
|
|||||||
.fullscreen.tvmode .elapsedpopoverbox {
|
.fullscreen.tvmode .elapsedpopoverbox {
|
||||||
min-width: 360px;
|
min-width: 360px;
|
||||||
}
|
}
|
||||||
|
.speedscale trough highlight {
|
||||||
|
min-height: 4px;
|
||||||
|
}
|
||||||
.fullscreen.tvmode .speedscale trough highlight {
|
.fullscreen.tvmode .speedscale trough highlight {
|
||||||
min-height: 6px;
|
min-height: 6px;
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,6 @@ class ClapperHeaderBarBase extends Gtk.Box
|
|||||||
margin_start: 6,
|
margin_start: 6,
|
||||||
margin_end: 6,
|
margin_end: 6,
|
||||||
});
|
});
|
||||||
this.add_css_class('osd');
|
|
||||||
this.add_css_class('osdheaderbar');
|
this.add_css_class('osdheaderbar');
|
||||||
|
|
||||||
this.isMaximized = false;
|
this.isMaximized = false;
|
||||||
@@ -40,11 +39,11 @@ class ClapperHeaderBarBase extends Gtk.Box
|
|||||||
valign: Gtk.Align.CENTER,
|
valign: Gtk.Align.CENTER,
|
||||||
can_focus: false,
|
can_focus: false,
|
||||||
});
|
});
|
||||||
|
const menuToggleButton = this.menuButton.get_first_child();
|
||||||
|
menuToggleButton.add_css_class('osd');
|
||||||
const mainMenuModel = uiBuilder.get_object('mainMenu');
|
const mainMenuModel = uiBuilder.get_object('mainMenu');
|
||||||
const mainMenuPopover = new HeaderBarPopover(mainMenuModel);
|
const mainMenuPopover = new HeaderBarPopover(mainMenuModel);
|
||||||
mainMenuPopover.add_css_class('menupopover');
|
|
||||||
this.menuButton.set_popover(mainMenuPopover);
|
this.menuButton.set_popover(mainMenuPopover);
|
||||||
this.menuButton.add_css_class('osd');
|
|
||||||
this.menuButton.add_css_class('circular');
|
this.menuButton.add_css_class('circular');
|
||||||
this.menuWidget.append(this.menuButton);
|
this.menuWidget.append(this.menuButton);
|
||||||
|
|
||||||
|
@@ -28,6 +28,7 @@ class ClapperPlaylistWidget extends Gtk.ListBox
|
|||||||
});
|
});
|
||||||
this.activeRowId = -1;
|
this.activeRowId = -1;
|
||||||
this.repeatMode = RepeatMode.NONE;
|
this.repeatMode = RepeatMode.NONE;
|
||||||
|
this.add_css_class('playlist');
|
||||||
|
|
||||||
this.connect('row-activated', this._onRowActivated.bind(this));
|
this.connect('row-activated', this._onRowActivated.bind(this));
|
||||||
}
|
}
|
||||||
@@ -254,6 +255,7 @@ class ClapperPlaylistItem extends Gtk.ListBoxRow
|
|||||||
}
|
}
|
||||||
this.filename = filename || uri;
|
this.filename = filename || uri;
|
||||||
this.set_tooltip_text(this.filename);
|
this.set_tooltip_text(this.filename);
|
||||||
|
this.add_css_class('playlistrow');
|
||||||
|
|
||||||
const box = new Gtk.Box({
|
const box = new Gtk.Box({
|
||||||
orientation: Gtk.Orientation.HORIZONTAL,
|
orientation: Gtk.Orientation.HORIZONTAL,
|
||||||
|
Reference in New Issue
Block a user