Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits: 7eb1c456 by wurstsalat at 2021-01-24T20:36:54+01:00 WorkspaceSidebar: Improve styling
- - - - -
2 changed files:
- gajim/data/style/gajim.css - gajim/gtk/workspace_side_bar.py
Changes:
===================================== gajim/data/style/gajim.css ===================================== @@ -64,24 +64,26 @@ border: 1px solid @borders; } /* Workspace sidebar */ - .workspace-sidebar { - background: transparent; + background: transparent; } - .workspace-sidebar-item { padding-top: 3px; padding-bottom: 3px; } -.workspace-sidebar-item:selected { - background-color: @borders; +.workspace-sidebar-item:selected, +.workspace-sidebar-item:hover { + background: transparent; + box-shadow: none; + outline: none; +} +.workspace-sidebar-item:selected image, +.workspace-sidebar-item:hover image { + box-shadow: 0 0 6px @theme_selected_bg_color; } .workspace-sidebar-item image { - padding: 6px; - background-color: @theme_unfocused_bg_color; - box-shadow: inset 0 0 6px @borders; + padding: 3px; border-radius: 6px; - border: 1px solid @borders; } /* ChatList */ .small-label {
===================================== gajim/gtk/workspace_side_bar.py ===================================== @@ -107,6 +107,7 @@ def __init__(self, workspace_id): image = Gtk.Image.new_from_icon_name('list-add-symbolic', Gtk.IconSize.DND) image.set_halign(Gtk.Align.CENTER) + image.get_style_context().add_class('dim-label') self.add(image) self.show_all()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/7eb1c456f856fbb47cf026f53653da5ba...