Skip to content

Commit 64cdf0c

Browse files
authored
Merge pull request #761 from lonerOrz/misc
fix(todo): unify details panel button styles
2 parents a4f8d85 + fb0137a commit 64cdf0c

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

todo/Panel.qml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,10 @@ Item {
11891189
NButton {
11901190
text: detailDialog.todoDetails.length > 0 ? pluginApi?.tr("panel.todo_details.button_edit_details") : pluginApi?.tr("panel.todo_details.button_add_details")
11911191
icon: "pencil"
1192-
backgroundColor: Color.mSurfaceVariant
1193-
textColor: Color.mOnSurface
1192+
backgroundColor: Color.mPrimary
1193+
textColor: Color.mOnPrimary
11941194
fontSize: Style.fontSizeS
1195-
outlined: true
1195+
visible: !detailsEditMode
11961196
onClicked: {
11971197
detailsEditMode = true;
11981198
Qt.callLater(function () {
@@ -1240,6 +1240,7 @@ Item {
12401240
NButton {
12411241
text: pluginApi?.tr("panel.todo_details.button_save")
12421242
backgroundColor: Color.mPrimary
1243+
textColor: Color.mOnPrimary
12431244
onClicked: {
12441245
updateTodo(detailDialog.todoId, {
12451246
details: detailsTextArea.text
@@ -1251,7 +1252,8 @@ Item {
12511252

12521253
NButton {
12531254
text: pluginApi?.tr("panel.todo_details.button_cancel")
1254-
backgroundColor: Color.mSurfaceVariant
1255+
backgroundColor: Color.mPrimary
1256+
textColor: Color.mOnPrimary
12551257
onClicked: {
12561258
detailsEditMode = false;
12571259
}

todo/manifest.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
{
22
"id": "todo",
33
"name": "Todo List",
4-
"version": "1.9.10",
4+
"version": "1.9.11",
55
"minNoctaliaVersion": "3.7.1",
66
"author": "lonerOrz <lonerOrz@qq.com>",
77
"license": "MIT",
88
"repository": "https://github.com/noctalia-dev/noctalia-plugins",
99
"description": "A simple todo list manager plugin for Noctalia Shell.",
10-
"tags": [
11-
"Bar",
12-
"Desktop",
13-
"Panel",
14-
"Productivity"
15-
],
10+
"tags": ["Bar", "Desktop", "Panel", "Productivity"],
1611
"entryPoints": {
1712
"main": "Main.qml",
1813
"barWidget": "BarWidget.qml",

0 commit comments

Comments
 (0)