Skip to content

Commit ab7fa2c

Browse files
committed
feat: add current version and project urls to header
1 parent 7104389 commit ab7fa2c

File tree

1 file changed

+112
-2
lines changed

1 file changed

+112
-2
lines changed

package/contents/ui/components/Header.qml

+112-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ RowLayout {
3535
Layout.fillWidth: true
3636
}
3737
RowLayout {
38-
Layout.alignment: Qt.AlignRight
39-
Layout.rightMargin: Kirigami.Units.gridUnit
38+
Layout.rightMargin: Kirigami.Units.smallSpacing
4039
Label {
4140
text: i18n("Last preset loaded:")
4241
}
@@ -45,4 +44,115 @@ RowLayout {
4544
font.weight: Font.DemiBold
4645
}
4746
}
47+
RowLayout {
48+
Layout.alignment: Qt.AlignRight
49+
Label {
50+
text: i18n("Version:")
51+
}
52+
Label {
53+
text: Plasmoid.metaData.version
54+
font.weight: Font.DemiBold
55+
}
56+
}
57+
58+
Menu {
59+
id: menu
60+
y: linksButton.height
61+
x: linksButton.x
62+
Action {
63+
text: "Changelog"
64+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer/blob/main/CHANGELOG.md")
65+
icon.name: "view-calendar-list-symbolic"
66+
}
67+
Action {
68+
text: "Releases"
69+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer/releases")
70+
icon.name: "update-none-symbolic"
71+
}
72+
73+
MenuSeparator { }
74+
75+
Menu {
76+
title: "Project page"
77+
icon.name: "globe"
78+
Action {
79+
text: "GitHub"
80+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer")
81+
}
82+
Action {
83+
text: "KDE Store"
84+
onTriggered: Qt.openUrlExternally("https://store.kde.org/p/2130967")
85+
}
86+
}
87+
88+
Menu {
89+
title: "Issues"
90+
icon.name: "project-open-symbolic"
91+
Action {
92+
text: "Current issues"
93+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen")
94+
}
95+
Action {
96+
text: "Report a bug"
97+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=%5BBug%5D%3A+")
98+
}
99+
Action {
100+
text: "Request a feature"
101+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.md&title=%5BFeature+Request%5D%3A+")
102+
}
103+
}
104+
105+
Menu {
106+
title: "Help"
107+
icon.name: "question-symbolic"
108+
Action {
109+
text: "FAQ"
110+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#faq")
111+
}
112+
Action {
113+
text: "Discussions"
114+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer/discussions")
115+
}
116+
Action {
117+
text: "Send an email"
118+
onTriggered: Qt.openUrlExternally("mailto:luisbocanegra17b@gmail.com")
119+
}
120+
}
121+
122+
Menu {
123+
title: "Donate"
124+
icon.name: "love"
125+
Action {
126+
text: "GitHub sponsors"
127+
onTriggered: Qt.openUrlExternally("https://github.com/sponsors/luisbocanegra")
128+
}
129+
Action {
130+
text: "Ko-fi"
131+
onTriggered: Qt.openUrlExternally("https://ko-fi.com/luisbocanegra")
132+
}
133+
Action {
134+
text: "Paypal"
135+
onTriggered: Qt.openUrlExternally("https://www.paypal.com/donate/?hosted_button_id=Y5TMH3Z4YZRDA")
136+
}
137+
}
138+
139+
MenuSeparator { }
140+
141+
Action {
142+
text: "More projects"
143+
onTriggered: Qt.openUrlExternally("https://github.com/luisbocanegra?tab=repositories&q=&type=source&language=&sort=stargazers")
144+
icon.name: "starred-symbolic"
145+
}
146+
}
147+
ToolButton {
148+
icon.name: "application-menu"
149+
id: linksButton
150+
onClicked: {
151+
if (menu.opened) {
152+
menu.close()
153+
} else {
154+
menu.open()
155+
}
156+
}
157+
}
48158
}

0 commit comments

Comments
 (0)