From af3dafa0cefdda8d665e45f0aceafe1e16c26a2f Mon Sep 17 00:00:00 2001 From: ronso0 Date: Thu, 30 Jan 2025 01:13:30 +0100 Subject: [PATCH] add PlayButton: drop previewing HotcueButton onto it to latch `play` --- CMakeLists.txt | 1 + .../button_play_2state_right_display.xml | 59 +++++++++++++++++++ .../decks/row_5_transportLoopJump.xml | 2 +- res/skins/LateNight/samplers/sampler.xml | 2 +- src/skin/legacy/legacyskinparser.cpp | 15 +++++ src/skin/legacy/legacyskinparser.h | 1 + src/skin/legacy/tooltips.cpp | 23 ++++++-- src/widget/hotcuedrag.cpp | 2 - src/widget/hotcuedrag.h | 2 +- src/widget/wplaybutton.cpp | 46 +++++++++++++++ src/widget/wplaybutton.h | 17 ++++++ 11 files changed, 160 insertions(+), 10 deletions(-) create mode 100644 res/skins/LateNight/controls/button_play_2state_right_display.xml create mode 100644 src/widget/wplaybutton.cpp create mode 100644 src/widget/wplaybutton.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 1efdf0f0d7e..f38414f3970 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1554,6 +1554,7 @@ add_library( src/widget/wnumberrate.cpp src/widget/woverview.cpp src/widget/wpixmapstore.cpp + src/widget/wplaybutton.cpp src/widget/wpushbutton.cpp src/widget/wraterange.cpp src/widget/wstarratingaction.cpp diff --git a/res/skins/LateNight/controls/button_play_2state_right_display.xml b/res/skins/LateNight/controls/button_play_2state_right_display.xml new file mode 100644 index 00000000000..f8ca1931d94 --- /dev/null +++ b/res/skins/LateNight/controls/button_play_2state_right_display.xml @@ -0,0 +1,59 @@ + + diff --git a/res/skins/LateNight/decks/row_5_transportLoopJump.xml b/res/skins/LateNight/decks/row_5_transportLoopJump.xml index 6e823d61038..8a76773cb26 100644 --- a/res/skins/LateNight/decks/row_5_transportLoopJump.xml +++ b/res/skins/LateNight/decks/row_5_transportLoopJump.xml @@ -71,7 +71,7 @@ stacked 68f,26f -