Adwaita: Try to fix up selection touch handles

The text handles reuse the style context from their parent widget,
and just add .cursor-handle. That means that the more specific
entry selectors override the .cursor-handle theming unless we
select for .entry.cursor-handle. We also need to work harder to
keep the .entry styling from drawing decorations around the outlines.
This commit is contained in:
Matthias Clasen 2014-07-13 13:34:59 -04:00
parent a2ac9e1baa
commit 5641fba7c6
3 changed files with 15 additions and 2 deletions

View File

@ -1054,9 +1054,12 @@ GtkTreeView.view.progressbar { //Progressbar in treeview cells
}
//touch selection handlebars for the Popover.osd above
.entry.cursor-handle,
.cursor-handle {
background-color: transparent;
background-image: none;
box-shadow: none;
border-style: none;
&.top { -gtk-icon-source: -gtk-icontheme('selection-start-symbolic'); }
&.bottom { -gtk-icon-source: -gtk-icontheme('selection-end-symbolic'); }
}

View File

@ -1196,11 +1196,16 @@ GtkTreeView.view.progressbar {
border-color: rgba(102, 102, 102, 0.8);
color: #939695; }
.entry.cursor-handle,
.cursor-handle {
background-color: transparent;
background-image: none; }
background-image: none;
box-shadow: none;
border-style: none; }
.entry.cursor-handle.top,
.cursor-handle.top {
-gtk-icon-source: -gtk-icontheme("selection-start-symbolic"); }
.entry.cursor-handle.bottom,
.cursor-handle.bottom {
-gtk-icon-source: -gtk-icontheme("selection-end-symbolic"); }

View File

@ -1189,11 +1189,16 @@ GtkTreeView.view.progressbar {
border-color: rgba(102, 102, 102, 0.8);
color: #8d9091; }
.entry.cursor-handle,
.cursor-handle {
background-color: transparent;
background-image: none; }
background-image: none;
box-shadow: none;
border-style: none; }
.entry.cursor-handle.top,
.cursor-handle.top {
-gtk-icon-source: -gtk-icontheme("selection-start-symbolic"); }
.entry.cursor-handle.bottom,
.cursor-handle.bottom {
-gtk-icon-source: -gtk-icontheme("selection-end-symbolic"); }