geany / geany-osx

Things needed to bundle Geany for OSX
Other
24 stars 14 forks source link

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

Closed that-ben closed 1 year ago

that-ben commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

that-ben commented 1 year ago

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 commented 1 year ago

What OS are you using?

that-ben commented 1 year ago

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 commented 1 year ago

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.

that-ben commented 1 year ago

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

elextr commented 1 year ago

Geany is, but system file layouts are not.

elextr commented 1 year ago

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

elextr commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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