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

Custom Border Colors for Individual Windows #74

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Jenyyk
Copy link

@Jenyyk Jenyyk commented Jan 15, 2025

Requested in #60
Moved the border color property into custom/global settings instead of raw prefs, allowing it to be different for seperate windows

Comment on lines -38 to -42
<key name="border-color" type="(dddd)">
<summary>Border color for rounded corners window</summary>
<default>(0.5, 0.5, 0.5, 1.0)</default>
</key>

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're removing a schema key, you have to also bump the version and reset it in src/utils/settings.ts resetOutdated function

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can i ask for some clarification on this?
I have found the settings-version key, but it is set to 0 by default. I can also see that the last version is 7, but where is this being set and where do i bump it?

And further, in the resetOutdated() function, would it be enough to just add in prefs.reset('border-color')?

src/preferences/pages/custom.ts Outdated Show resolved Hide resolved
@flexagoon
Copy link
Owner

Also, please lint your code with npx biome ci .

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