Styling LibraryPreviewButton in skin.xml not possible if <Library> is inside <Splitter> instead of legacy <TableView> widget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Low
|
RJ Skerry-Ryan |
Bug Description
Tested on OSX 10.8.2 with lp:mixxx/1.11-skins which is merged from lp:mixxx/1.11
If the <Library> is wrapped inside the new <Splitter> widget, the default LibraryPreviewB
If the <Library> is wrapped inside the legacy <TableView>widget, the default LibraryPreviewB
QPushButton#
QPushButton#
A small test skin.xml with 2 library tables, #1 with <TableView> and #2 with <Splitter> which shows the issue.
<!DOCTYPE skin>
<skin>
<Background>
<Path>
<BgColor>
</Background>
<WidgetGroup>
<Pos>0,0</Pos>
<Size>
<Layout>
<Children>
<!-- <TableView> Library sub-widget -->
<WidgetGroup>
<Pos>0,0</Pos>
<Size>
<Style>
<Children>
<TableView>
<
</TableView>
</Children>
</WidgetGroup>
<!-- <Splitter> Library sub-widget -->
<Splitter>
<Size>
<Style>
<SplitSizes
<Children>
<WidgetGroup>
<
<Children>
<!--Search Input Field-->
<!--Library Tree View-->
</Children>
</WidgetGroup>
<WidgetGroup>
<!-- Library Table-->
<
<Children>
</Children>
</WidgetGroup>
</Children>
</Splitter>
</Children>
</WidgetGroup>
</skin>
Changed in mixxx: | |
milestone: | 1.11.0 → 1.11.1 |
Changed in mixxx: | |
importance: | Undecided → Low |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
I think I ran into this also. I can't figure it out. If you change the button's border it works:
#LibraryPreview Button {
border: 0;
}
The <TableView> does a default styling of #LibraryPreview Button like so:
#LibraryPreview Button { background: transparent; border: 0; }
#LibraryPreview Button: checked { library/ ic_library_ preview_ pause.png) ; Button: !checked { library/ ic_library_ preview_ play.png) ;
image: url(:/images/
}
#LibraryPreview
image: url(:/images/
}