- some changes to busy indicator
- some changes to timer col
This commit is contained in:
parent
190a231a7b
commit
ac0d1a4616
6 changed files with 17 additions and 11 deletions
|
@ -23,16 +23,16 @@ import QtQuick.Controls 2.0
|
||||||
T.BusyIndicator {
|
T.BusyIndicator {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
property var image: "qrc:/images/SpeedHold.png"
|
||||||
implicitContentWidth + leftPadding + rightPadding)
|
|
||||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
implicitWidth: leftPadding + rightPadding
|
||||||
implicitContentHeight + topPadding + bottomPadding)
|
implicitHeight: topPadding + bottomPadding
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
Image {
|
Image {
|
||||||
id: holdImage
|
id: holdImage
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "qrc:/images/SpeedHold.png"
|
source: control.image
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.0
|
||||||
import de.itsblue.ScStw 2.0
|
import de.itsblue.ScStw 2.0
|
||||||
import de.itsblue.ScStwMonitor 2.0
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: control
|
id: control
|
||||||
|
@ -27,6 +26,8 @@ Column {
|
||||||
property var timers
|
property var timers
|
||||||
property var colors
|
property var colors
|
||||||
property var fontName
|
property var fontName
|
||||||
|
property bool showSecLabel: false
|
||||||
|
property bool showTimerLetter: true
|
||||||
|
|
||||||
opacity: backend.scStwClient.state === ScStwClient.CONNECTED ? 1:0
|
opacity: backend.scStwClient.state === ScStwClient.CONNECTED ? 1:0
|
||||||
|
|
||||||
|
@ -57,6 +58,8 @@ Column {
|
||||||
Label {
|
Label {
|
||||||
id: laneNameLa
|
id: laneNameLa
|
||||||
|
|
||||||
|
visible: control.showTimerLetter
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
}
|
}
|
||||||
|
@ -71,9 +74,9 @@ Column {
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
|
|
||||||
text: ""//index === 0 ? "A":"B"
|
text: timerRep.clearedTimers[index]["letter"]
|
||||||
|
|
||||||
color: control.colors.text
|
color: control.colors.accent
|
||||||
|
|
||||||
font.pixelSize: height
|
font.pixelSize: height
|
||||||
font.styleName: control.fontName
|
font.styleName: control.fontName
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
<file>fonts/fa5solid.woff</file>
|
<file>fonts/fa5solid.woff</file>
|
||||||
<file>images/BaseStationBlack.png</file>
|
<file>images/BaseStationBlack.png</file>
|
||||||
<file>images/BaseStationWhite.png</file>
|
<file>images/BaseStationWhite.png</file>
|
||||||
<file>images/SpeedHold.png</file>
|
|
||||||
<file>fonts/PTMono-Regular.ttf</file>
|
<file>fonts/PTMono-Regular.ttf</file>
|
||||||
|
<file>images/SpeedHoldBlack.png</file>
|
||||||
|
<file>images/SpeedHoldWhite.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
BIN
ScStwStyling/resources/shared/images/SpeedHoldWhite.png
Normal file
BIN
ScStwStyling/resources/shared/images/SpeedHoldWhite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -82,7 +82,8 @@ ScStwAppThemeManager::ScStwAppThemeManager(QObject *parent) : QObject(parent)
|
||||||
{"startpadIcon", "qrc:/graphics/icons/startpad_black.png"},
|
{"startpadIcon", "qrc:/graphics/icons/startpad_black.png"},
|
||||||
{"baseStationIcon", "qrc:/images/BaseStationBlack.png"},
|
{"baseStationIcon", "qrc:/images/BaseStationBlack.png"},
|
||||||
{"profilesIcon", "qrc:/graphics/icons/user_black.png"},
|
{"profilesIcon", "qrc:/graphics/icons/user_black.png"},
|
||||||
{"confirmIcon", "qrc:/graphics/icons/ok_black.png"}
|
{"confirmIcon", "qrc:/graphics/icons/ok_black.png"},
|
||||||
|
{"SpeedHold", "qrc:/images/SpeedHoldBlack.png"}
|
||||||
});
|
});
|
||||||
|
|
||||||
ScStwAppTheme *darkTheme = new ScStwAppTheme(
|
ScStwAppTheme *darkTheme = new ScStwAppTheme(
|
||||||
|
@ -130,7 +131,8 @@ ScStwAppThemeManager::ScStwAppThemeManager(QObject *parent) : QObject(parent)
|
||||||
{"startpadIcon", "qrc:/graphics/icons/startpad.png"},
|
{"startpadIcon", "qrc:/graphics/icons/startpad.png"},
|
||||||
{"baseStationIcon", "qrc:/images/BaseStationWhite.png"},
|
{"baseStationIcon", "qrc:/images/BaseStationWhite.png"},
|
||||||
{"profilesIcon", "qrc:/graphics/icons/user.png"},
|
{"profilesIcon", "qrc:/graphics/icons/user.png"},
|
||||||
{"confirmIcon", "qrc:/graphics/icons/ok.png"}
|
{"confirmIcon", "qrc:/graphics/icons/ok.png"},
|
||||||
|
{"SpeedHold", "qrc:/images/SpeedHoldWhite.png"}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Reference in a new issue