Skip to content

Commit c225983

Browse files
committed
fix(todo): unify details panel button styles
- Add/Edit, Save, and Cancel buttons now use consistent primary color - Hide Add/Edit button when in details edit mode - Fix text colors for proper visibility
1 parent 822c895 commit c225983

1 file changed

Lines changed: 6 additions & 4 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
}

0 commit comments

Comments
 (0)