[Bugs] #3656 Browse NORM: Browse: theme the autosuggestion toolbar correctly
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Thu May 31 10:16:13 EDT 2012
#3656: Browse: theme the autosuggestion toolbar correctly
----------------------------+-----------------------------------------------
Reporter: erikos | Owner: erikos
Type: defect | Status: new
Priority: Normal | Milestone: 0.96
Component: Browse | Version: 0.96.x
Severity: Major | Keywords: 12.1.0
Distribution: Unspecified | Status_field: New
----------------------------+-----------------------------------------------
Comment(by erikos):
This one is tricky. We do have global settings in the theme for the
background and the view which do block theming that popup window.
In Browse I added a gtype_name in order to theme the window:
{{{
class SearchWindow(Gtk.Window):
__gtype_name__ = 'BrowseSearchWindow'
def __init__(self):
Gtk.Window.__init__(self, type=Gtk.WindowType.POPUP)
}}}
The Window itself get themed by the .background clause in the theme so we
can do
{{{
BrowseSearchWindow.background {
background-color: @black;
}
}}}
to theme that.
The window is actually covered by the TextView which gets themed by the
.view clause. Doing the following does should normally handle it.
{{{
BrowseSearchWindow * {
background-color: @black;
color: @white;
border-style: solid;
border-width: $(thickness)px;
border-color: @button_grey;
}
}}}
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3656#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list