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

How to change matching brace color in Geany v2.0 ? #50

Closed
that-ben opened this issue Nov 10, 2023 · 15 comments
Closed

How to change matching brace color in Geany v2.0 ? #50

that-ben opened this issue Nov 10, 2023 · 15 comments

Comments

@that-ben
Copy link

that-ben commented Nov 10, 2023

Might be related to or even a duplicate of geany/geany#885 but I could not figure it out. I'm new to Geany.

Screenshot 2023-11-10 at 1 08 55 PM

If it means anything, I'm currently using the "Kary Pro Colors - Bare Dark" scheme.

@elextr elextr closed this as completed Nov 10, 2023
@elextr elextr reopened this Nov 10, 2023
@elextr
Copy link
Member

elextr commented Nov 10, 2023

Same as geany/geany#885, to change a colour scheme you have to edit the colour scheme file you are using and change the setting geany/geany#885 mentioned.

@that-ben
Copy link
Author

Alright, so given that I'm using the "Kary Pro Colors - Bare Dark" scheme, I can still launch this to access the file you're talking about, correct?

Screenshot 2023-11-10 at 5 32 16 PM

@elextr
Copy link
Member

elextr commented Nov 10, 2023

No, filetypes.common is the default colour scheme, you need whatever file you installed for the one you are using.

@that-ben
Copy link
Author

that-ben commented Nov 10, 2023

I did not install any, I selected "Kary Pro Colors - Bare Dark" from the list of bundled schemes like this:

Screenshot 2023-11-10 at 5 41 11 PM

I'm sorry if I'm infuriating long time users with this question right here, but I'm a complete Geany n00b so I have no clue what I'm doing! 🤣 Where should I look for that file exactly?

@elextr
Copy link
Member

elextr commented Nov 10, 2023

What OS are you using?

@that-ben
Copy link
Author

that-ben commented Nov 10, 2023

macOS Sonoma on a brand new iMac M3 that I received yesterday. Found this by following the location that's appearing in my previous screenshots in the window's title bar, but that folder is empty :(
Screenshot 2023-11-10 at 5 52 44 PM

@elextr
Copy link
Member

elextr commented Nov 10, 2023

Oh, apples are things I eat, not compute so I can't help you. But there is a mac specific issues for Geany so I'll transfer this issue to there.

@elextr elextr transferred this issue from geany/geany Nov 10, 2023
@that-ben
Copy link
Author

that-ben commented Nov 10, 2023

But isn't Geany OS agnostic? I mean it doesn't even use the native open/save dialog interface.

@elextr
Copy link
Member

elextr commented Nov 10, 2023

Geany is, but system file layouts are not.

@elextr
Copy link
Member

elextr commented Nov 10, 2023

No, Geany uses GTK on all platforms, never the native dialogs.

@elextr
Copy link
Member

elextr commented Nov 10, 2023

In case its any help for you finding them colour schemes on Linux are in ${PREFIX}/share/geany/colorschemes or ${HOME}/.config/geany/colorschemes.

@that-ben
Copy link
Author

that-ben commented Nov 11, 2023

Found this... progress?

Screenshot 2023-11-11 at 8 11 35 AM

Now in the appropriate color scheme, I see these brace lines, what do you think I should edit?

Screenshot 2023-11-11 at 8 03 44 AM

I tried to change the following line and chose 0xff0000 just to make sure it's apparent enough, I saved the file, quit Geany, re-launched it and it's still the same as before. I also selected another color scheme, quit Geany, re-launched, selected the modified color scheme again, but it's still the same.

brace_good=pro_orange,0xff0000;true;false

@that-ben
Copy link
Author

that-ben commented Nov 11, 2023

Found it. Geany 2.0 comes with a few broken color scheme templates. Look at the brace_good line, whoever made those bundled schemes typed a comma instead of a semicolon!

When I fix the broken scheme, it now works properly. If the Geany programmer sees this, the default line should be reading:

brace_good=pro_orange;pro_selection_background;true;false

Perhaps this should be fixed before releasing v2.0.1 ... make sure to check the light scheme from the same name also as it contains the same typo! ;-)

@elextr
Copy link
Member

elextr commented Nov 12, 2023

The bundled colour schemes are from this collection. Note its a collection, not made, tested or guaranteed by Geany devs. You could try raising an issue there so it doesn't get lost, the colour scheme contributors don't neccessarily watch the code repo, or even better make a PR.

@that-ben
Copy link
Author

that-ben commented Nov 12, 2023

Thanks @elextr I raised the issue over on the other GH, so I guess this one here can be closed.

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

No branches or pull requests

2 participants