-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skins/QML: Add library placeholder and 4 deck toggle
- Loading branch information
Showing
5 changed files
with
291 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.11 | ||
import Mixxx 0.1 | ||
|
||
Item { | ||
id: root | ||
required property string leftDeck; | ||
required property string rightDeck; | ||
|
||
RowLayout { | ||
anchors.fill: parent | ||
Layout.margins: 0 | ||
|
||
Rectangle { | ||
color: "#121213" | ||
implicitWidth: 68 | ||
implicitHeight: 26 | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
|
||
ToggleButton { | ||
id: playButtonDeck1 | ||
anchors.fill: parent | ||
group: root.leftDeck | ||
key: "play" | ||
icon.width: 50 | ||
icon.height: 24 | ||
background: Rectangle { | ||
anchors.fill: parent | ||
data: Image { | ||
id: playButtonDeck1BgImage | ||
anchors.fill: parent | ||
} | ||
} | ||
|
||
State { | ||
name: "0" | ||
PropertyChanges { | ||
target: playButtonDeck1 | ||
icon.source: "../LateNight/palemoon/buttons/btn__play_deck.svg" | ||
icon.color: "#777777" | ||
background.color: "transparent" | ||
background.border.width: 2 | ||
} | ||
PropertyChanges { | ||
target: playButtonDeck1BgImage | ||
source: "../LateNight/palemoon/buttons/btn_embedded_play.svg" | ||
} | ||
} | ||
|
||
State { | ||
name: "1" | ||
PropertyChanges { | ||
target: playButtonDeck1 | ||
icon.source: "../LateNight/palemoon/buttons/btn__play_deck_active.svg" | ||
icon.color: "transparent" | ||
background.color: "#b24c12" | ||
background.border.width: 2 | ||
} | ||
PropertyChanges { | ||
target: playButtonDeck1BgImage | ||
source: "../LateNight/palemoon/buttons/btn_embedded_play_active.svg" | ||
} | ||
} | ||
} | ||
} | ||
|
||
Rectangle { | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
implicitWidth: 300 | ||
implicitHeight: 180 | ||
|
||
color: "#1e1e20" | ||
border.color: "#121213" | ||
border.width: 2 | ||
radius: 1 | ||
|
||
RowLayout { | ||
anchors.fill: parent | ||
anchors.margins: 10 | ||
|
||
EqColumn { | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
group: root.leftDeck | ||
} | ||
|
||
MixerColumn { | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
group: root.leftDeck | ||
} | ||
|
||
MixerColumn { | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
group: root.rightDeck | ||
} | ||
|
||
EqColumn { | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
group: root.rightDeck | ||
} | ||
} | ||
} | ||
|
||
Rectangle { | ||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter | ||
implicitWidth: 68 | ||
implicitHeight: 26 | ||
|
||
color: "#121213" | ||
|
||
ToggleButton { | ||
id: playButtonDeck2 | ||
anchors.fill: parent | ||
group: root.rightDeck | ||
key: "play" | ||
icon.width: 50 | ||
icon.height: 24 | ||
background: Rectangle { | ||
anchors.fill: parent | ||
data: Image { | ||
id: playButtonDeck2BgImage | ||
anchors.fill: parent | ||
} | ||
} | ||
|
||
State { | ||
name: "0" | ||
PropertyChanges { | ||
target: playButtonDeck2 | ||
icon.source: "../LateNight/palemoon/buttons/btn__play_deck.svg" | ||
icon.color: "#777777" | ||
background.color: "transparent" | ||
background.border.width: 2 | ||
} | ||
PropertyChanges { | ||
target: playButtonDeck2BgImage | ||
source: "../LateNight/palemoon/buttons/btn_embedded_play.svg" | ||
} | ||
} | ||
|
||
State { | ||
name: "1" | ||
PropertyChanges { | ||
target: playButtonDeck2 | ||
icon.source: "../LateNight/palemoon/buttons/btn__play_deck_active.svg" | ||
icon.color: "transparent" | ||
background.color: "#b24c12" | ||
background.border.width: 2 | ||
} | ||
PropertyChanges { | ||
target: playButtonDeck2BgImage | ||
source: "../LateNight/palemoon/buttons/btn_embedded_play_active.svg" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 1.4 | ||
import Qt.labs.qmlmodels 1.0 | ||
|
||
Item { | ||
Rectangle { | ||
color: "#121213" | ||
anchors.fill: parent | ||
|
||
Text { | ||
text: "Library Placeholder" | ||
color: "white" | ||
anchors.centerIn: parent | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.