mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:25:18 +00:00
UI: ApplicationsPage: Tweak group buttons.
This commit is contained in:
parent
1534fd6217
commit
c1adc15edb
@ -3,6 +3,7 @@
|
||||
<file>qml/controls/ButtonMenu.qml</file>
|
||||
<file>qml/controls/ButtonPopup.qml</file>
|
||||
<file>qml/controls/LinkButton.qml</file>
|
||||
<file>qml/controls/RoundButtonTip.qml</file>
|
||||
<file>qml/controls/ScrollBarControl.qml</file>
|
||||
<file>qml/controls/SpinCombo.qml</file>
|
||||
<file>qml/controls/SpinComboRow.qml</file>
|
||||
|
@ -5,7 +5,7 @@ Label {
|
||||
id: bt
|
||||
|
||||
opacity: enabled ? 1.0 : 0.45
|
||||
color: checked ? "darkblue" : (mouseover ? "purple" : "blue")
|
||||
color: checked ? "darkblue" : (hovered ? "purple" : "blue")
|
||||
|
||||
font.underline: true
|
||||
|
||||
@ -17,7 +17,7 @@ Label {
|
||||
property bool pressed: ma.pressed && ma.containsMouse
|
||||
readonly property bool checked: selected || pressed
|
||||
|
||||
readonly property alias mouseover: ma.containsMouse
|
||||
readonly property alias hovered: ma.containsMouse
|
||||
|
||||
MouseArea {
|
||||
id: ma
|
||||
|
16
src/ui/qml/controls/RoundButtonTip.qml
Normal file
16
src/ui/qml/controls/RoundButtonTip.qml
Normal file
@ -0,0 +1,16 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
RoundButton {
|
||||
id: bt
|
||||
hoverEnabled: true
|
||||
|
||||
property alias tipText: toolTip.text
|
||||
|
||||
ToolTip {
|
||||
id: toolTip
|
||||
visible: bt.hovered
|
||||
delay: 500
|
||||
timeout: 5000
|
||||
}
|
||||
}
|
@ -71,11 +71,11 @@ BasePage {
|
||||
&& qsTranslate("qml", "Add Group")
|
||||
onClicked: addAppGroup()
|
||||
}
|
||||
Button {
|
||||
RoundButtonTip {
|
||||
enabled: editGroupName.text && appsColumn.enabled
|
||||
icon.source: "qrc:/images/application_edit.png"
|
||||
text: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Rename Group")
|
||||
tipText: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Rename Group")
|
||||
onClicked: renameAppGroup()
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.3
|
||||
import "../../controls"
|
||||
import com.fortfirewall 1.0
|
||||
|
||||
ColumnLayout {
|
||||
@ -9,25 +10,29 @@ ColumnLayout {
|
||||
property AppGroup appGroup
|
||||
|
||||
RowLayout {
|
||||
Button {
|
||||
RoundButtonTip {
|
||||
icon.source: "qrc:/images/application_delete.png"
|
||||
text: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Remove Group")
|
||||
tipText: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Remove Group")
|
||||
onClicked: removeAppGroup(index)
|
||||
}
|
||||
Button {
|
||||
RoundButtonTip {
|
||||
icon.source: "qrc:/images/resultset_previous.png"
|
||||
text: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Move left")
|
||||
tipText: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Move left")
|
||||
onClicked: moveAppGroup(index, -1)
|
||||
}
|
||||
Button {
|
||||
RoundButtonTip {
|
||||
icon.source: "qrc:/images/resultset_next.png"
|
||||
text: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Move right")
|
||||
tipText: translationManager.dummyBool
|
||||
&& qsTranslate("qml", "Move right")
|
||||
onClicked: moveAppGroup(index, 1)
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.preferredWidth: 10
|
||||
}
|
||||
|
||||
SpeedLimitButton {}
|
||||
|
||||
Item {
|
||||
|
Loading…
Reference in New Issue
Block a user