Skip to content

Commit

Permalink
LateNight: Add buttons for setting/removing beats markers [WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Nov 7, 2021
1 parent a5fd6b4 commit 1422b32
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
10 changes: 8 additions & 2 deletions res/skins/LateNight/style_palemoon.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2333,10 +2333,16 @@ WPushButton#PlayDeck[value="0"] {
image: url(skin:/palemoon/buttons/btn__beatgrid_controls_collapse.svg) no-repeat center center;
}

#BeatCurposLarge[displayValue="0"] {
#BeatsSetMarker[displayValue="0"] {
image: url(skin:/palemoon/buttons/btn__beat_curpos_large.svg) no-repeat center center;
}
#BeatCurposLarge[pressed="true"] {
#BeatsSetMarker[pressed="true"] {
image: url(skin:/palemoon/buttons/btn__beat_curpos_large_active.svg) no-repeat center center;
}
#BeatsRemoveMarker[displayValue="0"] {
image: url(skin:/palemoon/buttons/btn__beat_curpos_large.svg) no-repeat center center;
}
#BeatsRemoveMarker[pressed="true"] {
image: url(skin:/palemoon/buttons/btn__beat_curpos_large_active.svg) no-repeat center center;
}

Expand Down
27 changes: 18 additions & 9 deletions res/skins/LateNight/waveform.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,24 @@

<WidgetGroup><Size>1f,0min</Size></WidgetGroup>

<!-- CurPos -->
<Template src="skin:/controls/button_1state_right.xml">
<SetVariable name="TooltipId">beats_translate_curpos</SetVariable>
<SetVariable name="ObjectName">BeatCurposLarge</SetVariable>
<SetVariable name="Size">26f,52f</SetVariable>
<SetVariable name="BtnSize">library_tall</SetVariable>
<SetVariable name="ConfigKey"><Variable name="Group"/>,beats_translate_curpos</SetVariable>
<SetVariable name="ConfigKeyRight"><Variable name="Group"/>,beats_translate_match_alignment</SetVariable>
</Template>
<WidgetGroup><!-- beats set & remove marker -->
<Layout>vertical</Layout>
<Size>26f,52f</Size>
<Children>
<Template src="skin:/controls/button_1state.xml">
<SetVariable name="TooltipId">beats_set_marker</SetVariable>
<SetVariable name="ObjectName">BeatsSetMarker</SetVariable>
<SetVariable name="Size">26f,26f</SetVariable>
<SetVariable name="ConfigKey"><Variable name="Group"/>,beats_set_marker</SetVariable>
</Template>
<Template src="skin:/controls/button_1state.xml">
<SetVariable name="TooltipId">beats_remove_marker</SetVariable>
<SetVariable name="ObjectName">BeatsRemoveMarker</SetVariable>
<SetVariable name="Size">26f,26f</SetVariable>
<SetVariable name="ConfigKey"><Variable name="Group"/>,beats_remove_marker</SetVariable>
</Template>
</Children>
</WidgetGroup><!-- /beats set & remove marker -->

<WidgetGroup><!-- beats earlier & faster -->
<Layout>vertical</Layout>
Expand Down

0 comments on commit 1422b32

Please sign in to comment.