Compare commits
No commits in common. "e3ba80fd0dc21438f54f6ca19530c120227764b2" and "186c9a3aa2e23e949599b6016904d4f941f024b2" have entirely different histories.
e3ba80fd0d
...
186c9a3aa2
6 changed files with 9 additions and 33 deletions
|
|
@ -42,12 +42,11 @@ M.BarSection {
|
|||
root.percent = Math.round((c / m) * 100);
|
||||
}
|
||||
|
||||
M.BarIcon {
|
||||
icon: "\uF185"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
M.BarLabel {
|
||||
label: root.percent + "%"
|
||||
Text {
|
||||
text: root.percent + "% "
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Text {
|
|||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
HoverHandler { id: _hover }
|
||||
M.BarTooltip {
|
||||
ToolTip {
|
||||
visible: _hover.hovered && parent.tooltip !== ""
|
||||
text: parent.tooltip
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Text {
|
|||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
HoverHandler { id: _hover }
|
||||
M.BarTooltip {
|
||||
ToolTip {
|
||||
visible: _hover.hovered && parent.tooltip !== ""
|
||||
text: parent.tooltip
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import QtQuick
|
||||
import "." as M
|
||||
import QtQuick.Controls
|
||||
|
||||
Row {
|
||||
property string tooltip: ""
|
||||
|
||||
HoverHandler { id: _hover }
|
||||
M.BarTooltip {
|
||||
ToolTip {
|
||||
visible: _hover.hovered && parent.tooltip !== ""
|
||||
text: parent.tooltip
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import "." as M
|
||||
|
||||
ToolTip {
|
||||
id: tip
|
||||
padding: 6
|
||||
|
||||
background: Rectangle {
|
||||
color: M.Theme.base01
|
||||
border.color: M.Theme.base03
|
||||
border.width: 1
|
||||
radius: 4
|
||||
}
|
||||
|
||||
contentItem: Text {
|
||||
text: tip.text
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
}
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@ module modules
|
|||
singleton Theme 1.0 Theme.qml
|
||||
Bar 1.0 Bar.qml
|
||||
BarSection 1.0 BarSection.qml
|
||||
BarTooltip 1.0 BarTooltip.qml
|
||||
Workspaces 1.0 Workspaces.qml
|
||||
WindowTitle 1.0 WindowTitle.qml
|
||||
Clock 1.0 Clock.qml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue