Added floaty bar mode, made sidebar texts and Crypto.qml module bold
This commit is contained in:
@@ -29,8 +29,9 @@ PanelWindow {
|
||||
|
||||
readonly property var t: Cfg.Config.theme
|
||||
readonly property bool isTop: Cfg.Config.barPosition === "top"
|
||||
readonly property int frameTop: isTop ? Cfg.Config.barHeight : Cfg.Config.margin
|
||||
readonly property int frameBot: isTop ? Cfg.Config.margin : Cfg.Config.barHeight
|
||||
readonly property int barEdgePad: Cfg.Config.frameVariant === "bar" ? (isTop ? Cfg.Config.frameBarPadTop : Cfg.Config.frameBarPadBottom) : 0
|
||||
readonly property int frameTop: isTop ? Cfg.Config.barHeight + barEdgePad : Cfg.Config.margin
|
||||
readonly property int frameBot: isTop ? Cfg.Config.margin : Cfg.Config.barHeight + barEdgePad
|
||||
readonly property int inset: Cfg.Config.margin + Cfg.Config.frameBorderWidth + 8
|
||||
readonly property int sbWidth: 260
|
||||
readonly property bool isLeft: Cfg.Config.sideBarPosition === "left"
|
||||
|
||||
@@ -47,6 +47,7 @@ Rectangle {
|
||||
: root.t.mprisTextDim
|
||||
)
|
||||
font.pixelSize: primary ? 22 : 18
|
||||
font.weight: Font.Bold
|
||||
Behavior on color { ColorAnimation { duration: 150 } }
|
||||
}
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ Item {
|
||||
text: ""
|
||||
color: root.t.mprisAccent
|
||||
font.pixelSize: 18
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +145,7 @@ Item {
|
||||
text: root.activePlayer ? root.formatIdentity(root.activePlayer.identity) : "No media"
|
||||
color: root.t.mprisTextMain
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.DemiBold
|
||||
font.weight: Font.Bold
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
@@ -152,6 +153,7 @@ Item {
|
||||
text: root.playbackStatusText()
|
||||
color: root.t.mprisTextDim
|
||||
font.pixelSize: 10
|
||||
font.weight: Font.Bold
|
||||
opacity: 0.75
|
||||
}
|
||||
}
|
||||
@@ -204,6 +206,7 @@ Item {
|
||||
text: ""
|
||||
color: root.t.mprisAccent
|
||||
font.pixelSize: 28
|
||||
font.weight: Font.Bold
|
||||
visible: root.activePlayer && (root.activePlayer.trackArtUrl === "" || !albumArt.visible)
|
||||
}
|
||||
}
|
||||
@@ -217,7 +220,7 @@ Item {
|
||||
text: root.activePlayer ? (root.activePlayer.trackTitle || "Unknown Title") : ""
|
||||
color: root.t.mprisTextMain
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 2
|
||||
wrapMode: Text.WordWrap
|
||||
@@ -228,6 +231,7 @@ Item {
|
||||
text: root.activePlayer ? (root.activePlayer.trackArtist || "Unknown Artist") : ""
|
||||
color: root.t.mprisTextDim
|
||||
font.pixelSize: 11
|
||||
font.weight: Font.Bold
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
@@ -236,6 +240,7 @@ Item {
|
||||
text: root.activePlayer ? (root.activePlayer.trackAlbum || "") : ""
|
||||
color: root.t.mprisTextDim
|
||||
font.pixelSize: 10
|
||||
font.weight: Font.Bold
|
||||
opacity: 0.7
|
||||
elide: Text.ElideRight
|
||||
visible: root.activePlayer && root.activePlayer.trackAlbum !== ""
|
||||
@@ -277,6 +282,7 @@ Item {
|
||||
text: root.activePlayer ? root.formatDuration(root.activePlayer.position) : "0:00"
|
||||
color: root.t.mprisTextDim
|
||||
font.pixelSize: 9
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
}
|
||||
|
||||
@@ -286,6 +292,7 @@ Item {
|
||||
text: root.activePlayer ? root.formatDuration(root.activePlayer.length) : "0:00"
|
||||
color: root.t.mprisTextDim
|
||||
font.pixelSize: 9
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
}
|
||||
@@ -302,6 +309,7 @@ Item {
|
||||
text: root.volumeIcon()
|
||||
color: root.activePlayer && root.activePlayer.volume > 0 ? root.t.mprisAccent : root.t.mprisTextDim
|
||||
font.pixelSize: 16
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
|
||||
|
||||
@@ -243,6 +243,7 @@ ColumnLayout {
|
||||
text: ""
|
||||
color: root.t.sysInfoAccent
|
||||
font.pixelSize: 20
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -255,7 +256,7 @@ ColumnLayout {
|
||||
text: root.osName
|
||||
color: root.t.sysInfoTextMain
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.DemiBold
|
||||
font.weight: Font.Bold
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
@@ -263,6 +264,7 @@ ColumnLayout {
|
||||
text: root.kernelVer
|
||||
color: root.t.sysInfoTextDim
|
||||
font.pixelSize: 10
|
||||
font.weight: Font.Bold
|
||||
opacity: 0.75
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
@@ -421,6 +423,7 @@ ColumnLayout {
|
||||
text: ""
|
||||
color: root.t.sysInfoAccent
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -428,6 +431,7 @@ ColumnLayout {
|
||||
text: "Uptime"
|
||||
color: root.t.sysInfoTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -436,7 +440,7 @@ ColumnLayout {
|
||||
text: root.uptimeStr
|
||||
color: root.t.sysInfoTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
@@ -458,6 +462,7 @@ ColumnLayout {
|
||||
text: ""
|
||||
color: root.t.sysInfoAccent
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -465,6 +470,7 @@ ColumnLayout {
|
||||
text: "Kernel"
|
||||
color: root.t.sysInfoTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -473,7 +479,7 @@ ColumnLayout {
|
||||
text: root.kernelVer
|
||||
color: root.t.sysInfoTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
@@ -515,6 +521,7 @@ ColumnLayout {
|
||||
: ""
|
||||
color: parent.battIconColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -522,6 +529,7 @@ ColumnLayout {
|
||||
text: "Battery"
|
||||
color: root.t.sysInfoTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -530,6 +538,7 @@ ColumnLayout {
|
||||
text: Math.round(root.battPct) + "%"
|
||||
color: root.t.sysInfoTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
@@ -575,6 +584,7 @@ ColumnLayout {
|
||||
text: root.netOnline ? "" : ""
|
||||
color: root.netOnline ? root.t.statusOk : root.t.sysInfoTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -582,6 +592,7 @@ ColumnLayout {
|
||||
text: "Network"
|
||||
color: root.t.sysInfoTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -590,7 +601,7 @@ ColumnLayout {
|
||||
text: root.netOnline ? "Connected" : "Offline"
|
||||
color: root.netOnline ? root.t.statusOk : root.t.statusErr
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ Item {
|
||||
text: root.icon
|
||||
color: root.iconColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +50,7 @@ Item {
|
||||
text: root.label
|
||||
color: root.dimColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -57,7 +59,7 @@ Item {
|
||||
text: root.value
|
||||
color: root.textColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@ Item {
|
||||
text: root.icon
|
||||
color: root.t.weatherAccent
|
||||
font.pixelSize: 18
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +101,7 @@ Item {
|
||||
text: root.condition
|
||||
color: root.t.weatherTextMain
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.DemiBold
|
||||
font.weight: Font.Bold
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
@@ -108,6 +109,7 @@ Item {
|
||||
text: root.location
|
||||
color: root.t.weatherTextDim
|
||||
font.pixelSize: 10
|
||||
font.weight: Font.Bold
|
||||
opacity: 0.75
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
@@ -130,6 +132,7 @@ Item {
|
||||
text: ""
|
||||
color: refreshMouse.containsMouse ? root.t.weatherAccent : root.t.weatherTextDim
|
||||
font.pixelSize: 14
|
||||
font.weight: Font.Bold
|
||||
Behavior on color { ColorAnimation { duration: 150 } }
|
||||
|
||||
RotationAnimator {
|
||||
@@ -183,6 +186,7 @@ Item {
|
||||
text: ""
|
||||
color: root.t.weatherTempColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,6 +194,7 @@ Item {
|
||||
text: "Temperature"
|
||||
color: root.t.weatherTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -198,7 +203,7 @@ Item {
|
||||
text: root.temp
|
||||
color: root.t.weatherTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
@@ -220,6 +225,7 @@ Item {
|
||||
text: ""
|
||||
color: root.t.weatherFeelsColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,6 +233,7 @@ Item {
|
||||
text: "Feels like"
|
||||
color: root.t.weatherTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -235,7 +242,7 @@ Item {
|
||||
text: root.feelsLike
|
||||
color: root.t.weatherTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
@@ -257,6 +264,7 @@ Item {
|
||||
text: ""
|
||||
color: root.t.weatherHumidColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -264,6 +272,7 @@ Item {
|
||||
text: "Humidity"
|
||||
color: root.t.weatherTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -272,7 +281,7 @@ Item {
|
||||
text: root.humidity
|
||||
color: root.t.weatherTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
@@ -294,6 +303,7 @@ Item {
|
||||
text: ""
|
||||
color: root.t.weatherWindColor
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,6 +311,7 @@ Item {
|
||||
text: "Wind"
|
||||
color: root.t.weatherTextDim
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Bold
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
@@ -309,7 +320,7 @@ Item {
|
||||
text: root.wind
|
||||
color: root.t.weatherTextMain
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.Medium
|
||||
font.weight: Font.Bold
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user