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 color scheme for geany gtk #1833

Open
saiballo opened this issue Apr 19, 2018 · 5 comments
Open

custom color scheme for geany gtk #1833

saiballo opened this issue Apr 19, 2018 · 5 comments

Comments

@saiballo
Copy link

Until version 1.32 I used a custom color scheme for interface. I run Geany with this command:

bash -c 'GTK2_RC_FILES=~/.config/geany/my_theme geany %F'

with 1.33 version this launcher does not work... any suggestion?

I'm on Ubuntu 16.04 and GTK 3.18.9, GLib 2.48.2

thank you

@codebrainz
Copy link
Member

You're using a GTK+ 3 build of Geany, so your GTK+ 2 gtkrc theme isn't going to work anymore. Nothing has changed in Geany, just you (or your distro, PPA, etc.) has used the --enable-gtk3 option when building Geany.

@saiballo
Copy link
Author

saiballo commented Apr 19, 2018

ah ok... thank you.

so if i change PPA to another with geany 1.33 compiled with gtk2 it would be work or not?

Or how can i enable my old theme with gtk3?

@codebrainz
Copy link
Member

so if i change PPA to another with geany 1.33 compiled with gtk2 it would be work or not?

If it's built against GTK+ 2, it would work just as it did before.

Or how can i enable my old theme with gtk3?

You would have to port it to GTK+ 3 CSS. Unfortunately they changed just about everything between v2 and v3 to do with theming, but if you know CSS already, you'd probably find it easier/better in GTK+3.

@saiballo
Copy link
Author

ok thanks!

@saiballo
Copy link
Author

Ok, finally solve with the help of Gtk Inspector. With these rules you can customize a dark theme for sidebar and dialogs (I didn't want to customize entire interface):

#GeanyDialog GtkButton,
#GeanyDialog GtkButton GtkLabel,
#GeanyDialog GtkButton GtkImage,
#GeanyDialog GtkWidget GtkEntry,
#GeanyDialog GtkWidget GtkButton
{
background: #f0f0f0;
color: #000;
}

#GeanyDialogSearch,
#GeanyDialog,
GtkTreeView
{
background: #1e1e1e;
color: #fff;
}

#GeanyDialog GtkWidget
{
background: transparent;
}

GtkTreeView:hover,
GtkTreeView:insensitive,
GtkTreeView:active {
background: #666;
}

GtkTreeView:selected {
background-color: #2F5692;
color: #fff;
}

@geany geany deleted a comment from webdev23 Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants