Skip to content

Commit

Permalink
move Library & samplers expand toggle to the right, fix TreeView marg…
Browse files Browse the repository at this point in the history
…in (scrollbar offset)
  • Loading branch information
ronso0 committed Nov 26, 2018
1 parent 7ccbb49 commit 2f85851
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
4 changes: 2 additions & 2 deletions res/skins/Deere/library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
<WidgetGroup>
<Layout>horizontal</Layout>
<Children>
<SearchBox>
</SearchBox>
<Template src="skin:hide_show_button.xml">
<SetVariable name="TooltipId">maximize_library</SetVariable>
<SetVariable name="object_name">LibraryToggle</SetVariable>
<SetVariable name="control">[Master],maximize_library</SetVariable>
</Template>
<SearchBox>
</SearchBox>
</Children>
</WidgetGroup>
<!-- QSplitter between LibrarySidebar and CoverArt -->
Expand Down
34 changes: 17 additions & 17 deletions res/skins/Deere/sampler_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,6 @@
<Layout>horizontal</Layout>
<Children>

<WidgetGroup>
<ObjectName>SamplerExpandButtonContainer</ObjectName>
<Layout>vertical</Layout>
<Size>20f,-1me</Size>
<Children>
<WidgetGroup><Size>0min,3f</Size></WidgetGroup>

<Template src="skin:hide_show_button.xml">
<SetVariable name="object_name">SamplerRowExpandButton</SetVariable>
<SetVariable name="control">[Skin],sampler_row_<Variable name="row"/>_expanded</SetVariable>
</Template>

<!-- Push the button up to the top. -->
<Template src="skin:spacer_v.xml"/>
</Children>
</WidgetGroup>

<Template src="skin:sampler.xml">
<SetVariable name="i"><Variable name="1"/></SetVariable>
</Template>
Expand Down Expand Up @@ -53,6 +36,23 @@
<SetVariable name="i"><Variable name="8"/></SetVariable>
</Template>

<WidgetGroup>
<ObjectName>SamplerExpandButtonContainer</ObjectName>
<Layout>vertical</Layout>
<Size>20f,-1me</Size>
<Children>
<WidgetGroup><Size>0min,3f</Size></WidgetGroup>

<Template src="skin:hide_show_button.xml">
<SetVariable name="object_name">SamplerRowExpandButton</SetVariable>
<SetVariable name="control">[Skin],sampler_row_<Variable name="row"/>_expanded</SetVariable>
</Template>

<!-- Push the button up to the top. -->
<Template src="skin:spacer_v.xml"/>
</Children>
</WidgetGroup>

</Children>
</WidgetGroup>
</Template>
10 changes: 7 additions & 3 deletions res/skins/Deere/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
#Sampler {
border-style: solid;
border-color: #222;
border-width: 0px 1px;
border-width: 0px 2px 0px 0px;
}

#SamplerMiddleSpacer {
Expand Down Expand Up @@ -315,7 +315,7 @@ QHeaderView::down-arrow {

/* library search bar */
WSearchLineEdit {
margin: 0px 0px 0px 1px;
margin: 0px 2px 0px 0px;
padding: 2px;
border: 1px solid #4B4B4B;
background-color: #1e1e1e;
Expand Down Expand Up @@ -365,7 +365,11 @@ WSearchLineEdit:focus {

/* Spacing between treeview and preview deck/search bar */
QTreeView {
margin: 4px 0px 0px 0px;
margin: 0px;
}

#LibraryCoverArtSplitter {
margin-top: 4px;
}

/* sidebar, as well as root items for playlists, crates, and history */
Expand Down

0 comments on commit 2f85851

Please sign in to comment.