Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edit theme dialog title logic #2205

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

3gf8jv4dv
Copy link
Contributor

@3gf8jv4dv 3gf8jv4dv commented Dec 23, 2024

Introduction

As you can see from the code and the actual behavior, both share the same code whether adding or editing a theme. So why does the title show up as "Edit Theme" no matter what? It does seem strange in a way.

This feature appears to have been added in v2.0.0, but no one seems to have cared about the issue during the two years.

Nonetheless, when I realized this recently, I decided to fix it. Hopefully this will make things clearer for those users who may not be able to tell the difference.

Now, when the "Add theme" button is clicked, the dialog title will show "Add theme". If you right-click on a user-created theme, the dialog title will show "Edit theme".

Picture Time!

English (en-US)

🟥 Before

3-1
3-2

🔵 After

4-1
4-2

Simplified Chinese (zh-CN)

🟥 Before

1-1
1-2

🔵 After

2-1
2-2

As you can see from the code and the actual behavior, both share the
same code whether adding or editing a theme. So why does the title show
up as "Edit Theme" no matter what? It does seem strange in a way.

This feature appears to have been added in v2.0.0, but no one seems to
have cared about the issue during the two years.

Nonetheless, when I realized this recently, I decided to fix it.
Hopefully this will make things clearer for those users who may not be
able to tell the difference.

Now, when the "Add theme" button is clicked, the dialog title will
show "Add theme". If you right-click on a user-created theme, the dialog
title will show "Edit theme".
Simpler code

Co-authored-by: lyswhut <lyswhut@qq.com>
@3gf8jv4dv 3gf8jv4dv requested a review from lyswhut December 23, 2024 15:50
@lyswhut lyswhut merged commit 5bde54a into lyswhut:dev Dec 23, 2024
1 check passed
@3gf8jv4dv 3gf8jv4dv deleted the edit-theme-dialog-title branch December 23, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants