All:
You know how the active tab is indicated by that thin blue line? I'd like to edit that if I could to make it more prominent. What's the name of the file?
On Sun, 1 Jan 2023 at 02:17, Ray Andrews via Users users@lists.geany.org wrote:
All:
You know how the active tab is indicated by that thin blue line?
No, not here.
Its defined by your GTK theme, so different desktops with different themes show it differently.
I'd like to edit that if I could to make it more prominent. What's the name of the file?
Since its the GTK theme which is CSS you can override any settings in the theme with entries in geany.css (access by Menu->Tools->Configuration Files->geany.css)
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 2022-12-31 15:51, Lex Trotman via Users wrote:
On Sun, 1 Jan 2023 at 02:17, Ray Andrews via Users users@lists.geany.org wrote:
All:
You know how the active tab is indicated by that thin blue line?
Since its the GTK theme which is CSS you can override any settings in the theme with entries in geany.css (access by Menu->Tools->Configuration Files->geany.css)
Yeah that's the thing Lex, which file is it? I know it's GTK but I need to home in on it.
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On Sun, 1 Jan 2023 at 13:33, Ray Andrews via Users users@lists.geany.org wrote:
On 2022-12-31 15:51, Lex Trotman via Users wrote:
On Sun, 1 Jan 2023 at 02:17, Ray Andrews via Users users@lists.geany.org wrote:
All:
You know how the active tab is indicated by that thin blue line?
Since its the GTK theme which is CSS you can override any settings in the theme with entries in geany.css (access by Menu->Tools->Configuration Files->geany.css)
Yeah that's the thing Lex, which file is it? I know it's GTK but I need to home in on it.
Did I not say you override it in `Menu->Tools->Configuration Files->geany.css`, don't change any existing files!!!!! It is GTK CSS and its overriding works just like real CSS.
As for what the setting is you need to override, sorry I'm not GTK CSS literate enough.
Cheers Lex
Cheers Lex
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 2022-12-31 21:54, Lex Trotman via Users wrote:
Did I not say you override it in `Menu->Tools->Configuration Files->geany.css`, don't change any existing files!!!!! It is GTK CSS and its overriding works just like real CSS.
AFAIKT the CSS stuff only changes thingies that are solid color. Like a while back you helped me edit my scrollbars (I can actually see them now!). If there's a ... how to say it? ... a 'decoration' then it's going to be an *.xpm file. The solid blue line at the bottom of the active tab is a 'decoration' so I'm not thinking that CSS will be where I look for the answer. But the .xpm files seem only to involve the window decorations not things like Geany tabs so I don't know where to look. Maybe CSS after all. If I knew where the 'master' CSS for all this stuff was then I could start poking around, but I understand it's mostly all built-in to xfce4's theme manager. I'll ask those guys.
As for what the setting is you need to override, sorry I'm not GTK CSS literate enough.
Me neither. But thanks anyway.
On Mon, 2 Jan 2023 at 01:27, Ray Andrews via Users users@lists.geany.org wrote:
On 2022-12-31 21:54, Lex Trotman via Users wrote:
Did I not say you override it in `Menu->Tools->Configuration Files->geany.css`, don't change any existing files!!!!! It is GTK CSS and its overriding works just like real CSS.
AFAIKT the CSS stuff only changes thingies that are solid color. Like a while back you helped me edit my scrollbars (I can actually see them now!). If there's a ... how to say it? ... a 'decoration' then it's going to be an *.xpm file.
I think GTK supports svg, png, jpg as well (at least).
The solid blue line at the bottom of the active tab is a 'decoration' so I'm not thinking that CSS will be where I look for the answer.
CSS is definitely where images are specified.
See https://docs.gtk.org/gtk3/css-overview.html#:~:text=CSS%20nodes,each%20node%.... As well as how to specify images, how to specify states, eg active tab, that has an example of changing a notebook tab colour. You would need an alternative image, so maybe changing the colour will be sufficient if you make your active tab bright orange so it stands out ;-)
But the .xpm files seem only to involve the window decorations not things like Geany tabs so I don't know where to look. Maybe CSS after all. If I knew where the 'master' CSS for all this stuff was then I could start poking around, but I understand it's mostly all built-in to xfce4's theme manager. I'll ask those guys.
As for what the setting is you need to override, sorry I'm not GTK CSS literate enough.
Me neither. But thanks anyway.
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 2023-01-01 16:53, Lex Trotman via Users wrote:
CSS is definitely where images are specified. See https://docs.gtk.org/gtk3/css-overview.html#:~:text=CSS%20nodes,each%20node%.... As well as how to specify images, how to specify states, eg active tab, that has an example of changing a notebook tab colour. You would need an alternative image, so maybe changing the colour will be sufficient if you make your active tab bright orange so it stands out ;-)
I'm not about to learn CSS/GTK, that would take the rest of my life. Nope, if someone can point to the exact place to make the change then I'd pursue the issue but otherwise it's not worth the time. Thanks anyway Lex.
On 2023-01-01 16:53, Lex Trotman via Users wrote:
CSS is definitely where images are specified. Seehttps://docs.gtk.org/gtk3/css-overview.html#:~:text=CSS%20nodes,each%20node%.... As well as how to specify images, how to specify states, eg active tab, that has an example of changing a notebook tab colour. You would need an alternative image, so maybe changing the colour will be sufficient if you make your active tab bright orange so it stands out ;-)
Lex, That'll be helpful for new(er) users. Same /GENERAL/ process applies to many apps (does in Linux}.
General tip - to myself & others: be polite...
On 1/2/23 09:06, Ray Andrews via Users wrote:
If there's a... 'decoration' then [there's] going to be an *.xpm file.
Not necessarily. Depends on how a **specific** object / element in an app's UI was developed. If by Gtk, then CSS can generally be used to customize the same (but not 100.00% of time).
I'm not about to learn CSS/GTK, that would take the rest of my life.
Oh, yes you are!!! Don't make us come over "there". Tape your eyelids open & stare at code below (like most wanting to customize a UI have done). :D "take the rest of my life" - it may not be that long.
The following is a dreaded CSS rule from a customized _system-wide_ theme (in Linux) - gtk.css (gtk-3.20). I tested - adding it to A COPY of geany.css; and placed at the end of the file that's in the (Linux) path: home/<user-name</.config/geany/geany.css.
Changes in geany.css in the path shown (in Linux) will override the same code found in geany.css from the INSTALLATION folder (if the code exists). If that code DOESN'T exist in orig. geany.css, assuming the CSS selector plus the property & value that we added are correct, it will still style that element.
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { border-top-width: 3px; border-top-color: #FC7BF4; /*test- pink top border. Change as desired. */ margin-top: 0; padding-top: 1px; }
In general, it changes the top border(s) of selected tabs in most (not all) apps that *use CSS* to style that object in the UI. Not ALL of THE UI in ALL APPS, is styled 100% w/ CSS. It "depends."
If one wants to change an object *ONLY in Geany* or in a given app, they may have to edit an existing <app-name>.CSS file - or create it. It's a BAD idea to edit the original CSS or ANY ORIGINAL file in an app.
In Linux, I have: /home/<user-name>/.config/geany/geany.css file. Probably copied from the Geany installation folder to my user folder. (Same concept in Windows, but the path where the geany.css file (to be customized) should go will differ. Where to place it - should easily be searchable (or stated in the Geany user manual).
That way, if you f.., uh, mess up the edited file, the ORIGINAL file in the installation folder is untouched.
[...]
The following is a dreaded CSS rule from a customized system-wide theme (in Linux) - gtk.css (gtk-3.20). I tested - adding it to A COPY of geany.css; and placed at the end of the file that's in the (Linux) path: home/<user-name</.config/geany/geany.css.
I keep repeating `Menu->Tools->Configuration Files->geany.css`. That handles all the platform dependent paths for you, if a user config version of the file exists it opens that, if not it creates a copy of the system file, commented out so it won't override it, and sets the save path to the user config directory so it won't be overwritten when Geany is upgraded.
If you want to change something that is set in the system file uncomment it and make the change, otherwise just add whatever.
Changes in geany.css in the path shown (in Linux) will override the same code found in geany.css from the INSTALLATION folder (if the code exists). If that code DOESN'T exist in orig. geany.css, assuming the CSS selector plus the property & value that we added are correct, it will still style that element.
[...]
In general, it changes the top border(s) of selected tabs in most (not all) apps that use CSS to style that object in the UI. Not ALL of THE UI in ALL APPS, is styled 100% w/ CSS. It "depends."
In Geany AFAIK the only UI element that isn't standard GTK is the edit widget, so everything else should be CSSable. Sadly GTK CSS negligently omitted classes for every lexical element of every filetype so the edit window cannot be styled with CSS ;-P
If one wants to change an object *ONLY in Geany* or in a given app, they may have to edit an existing <app-name>.CSS file - or create it. It's a BAD idea to edit the original CSS or ANY ORIGINAL file in an app.
User config geany.css overrides Geany system css file(s) overrides GTK user or system settings and themes, but _only_ for Geany. There was some "discussion" about adding the geany.css to the geany config since everything could technically be done with standard GTK methods. But having it in Geany system data dir and Geany user config dir makes it a location Geany can find with `Menu->Tools->Configuration Files` on any platform with any installation of GTK, and it is only loaded by Geany so it cannot accidently affect any other app, and the user needs no platform specific location knowledge.
In Linux, I have: /home/<user-name>/.config/geany/geany.css file. Probably copied from the Geany installation folder to my user folder. (Same concept in Windows, but the path where the geany.css file (to be customized) should go will differ. Where to place it - should easily be searchable (or stated in the Geany user manual).
https://www.geany.org/manual/current/index.html#configuration-file-paths and https://www.geany.org/manual/current/index.html#tools-menu-items
Perhaps it could be improved, contributions are welcome.
That way, if you f.., uh, mess up the edited file, the ORIGINAL file in the installation folder is untouched.
And as I said above, if you edit a Geany system file it will be overwritten next upgrade, just don't do it.
Cheers Lex
On 2023-01-03 17:23, bork via Users wrote:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { border-top-width: 3px; border-top-color: #FC7BF4; /*test- pink top border. Change as desired. */ margin-top: 0; padding-top: 1px; }
I cut and pasted that into new file: /root/.config/geany/geany.css and I get this msg:
(geany:3288): Geany-WARNING **: 08:20:34.428: Failed to load custom CSS: geany.css:1:0Expected a valid selector
... but at least I'm understanding the idea of having the custom file rather than changing the stock file, so there is that. As to the content above, I'm the world's ultimate non-expert as to this stuff but the look of the first line is not like anything I've ever seen.
Hi there, my experience with CSS is that you have to take it slow, with small changes, and increment your customizations as you understand more of it. I found this (unrelated) post: https://github.com/gnome-terminator/terminator/issues/313#issuecomment-86156... which may help you start. What I found so far: - the ~/.config/geany/geany.css file does not seem to have an influence on the tab styling - the ~/.config/gtk-3.0/gtk.css file DOES override the gtk theme styling
I've attached the gtk.css file I used for my test to this message. When applied, together with my default GTK theme, *WhiteSur-Dark-solid*, it looks like this (on macos): [image: screenshot_gtk_override_geany.png]
I hope this helps.
Cheers, -- *Lucas Vieites https://namedrop.io/lucasvieites* Blog @ codexion.com https://blog.codexion.com/ LinkedIn https://www.linkedin.com/in/lucasvieites
On Wed, Jan 4, 2023 at 5:25 PM Ray Andrews via Users users@lists.geany.org wrote:
On 2023-01-03 17:23, bork via Users wrote:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { border-top-width: 3px; border-top-color: #FC7BF4; /*test- pink top border. Change as desired. */ margin-top: 0; padding-top: 1px; }
I cut and pasted that into new file: /root/.config/geany/geany.css and I get this msg:
(geany:3288): Geany-WARNING **: 08:20:34.428: Failed to load custom CSS: geany.css:1:0Expected a valid selector
... but at least I'm understanding the idea of having the custom file rather than changing the stock file, so there is that. As to the content above, I'm the world's ultimate non-expert as to this stuff but the look of the first line is not like anything I've ever seen.
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I'm sorry, but I have to correct my previous statements: - the ~/.config/geany/geany.css file *DOES* have an influence on the tab styling, you have to close Geany and restart it to take effect. The content of the CSS file I included can be added at the end of geany.css.
Apologies, -- *Lucas Vieites https://namedrop.io/lucasvieites* Blog @ codexion.com https://blog.codexion.com/ LinkedIn https://www.linkedin.com/in/lucasvieites
On Wed, Jan 4, 2023 at 5:52 PM Lucas Vieites lucas.vieites@gmail.com wrote:
Hi there, my experience with CSS is that you have to take it slow, with small changes, and increment your customizations as you understand more of it. I found this (unrelated) post: https://github.com/gnome-terminator/terminator/issues/313#issuecomment-86156... which may help you start. What I found so far:
- the ~/.config/geany/geany.css file does not seem to have an influence on
the tab styling
the ~/.config/gtk-3.0/gtk.css file DOES override the gtk theme styling
I've attached the gtk.css file I used for my test to this message. When
applied, together with my default GTK theme, *WhiteSur-Dark-solid*, it looks like this (on macos): [image: screenshot_gtk_override_geany.png]
I hope this helps.
Cheers,
*Lucas Vieites https://namedrop.io/lucasvieites* Blog @ codexion.com https://blog.codexion.com/ LinkedIn https://www.linkedin.com/in/lucasvieites
On Wed, Jan 4, 2023 at 5:25 PM Ray Andrews via Users < users@lists.geany.org> wrote:
On 2023-01-03 17:23, bork via Users wrote:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { border-top-width: 3px; border-top-color: #FC7BF4; /*test- pink top border. Change as desired. */ margin-top: 0; padding-top: 1px; }
I cut and pasted that into new file: /root/.config/geany/geany.css and I get this msg:
(geany:3288): Geany-WARNING **: 08:20:34.428: Failed to load custom CSS: geany.css:1:0Expected a valid selector
... but at least I'm understanding the idea of having the custom file rather than changing the stock file, so there is that. As to the content above, I'm the world's ultimate non-expert as to this stuff but the look of the first line is not like anything I've ever seen.
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On 2023-01-04 09:01, Lucas Vieites via Users wrote:
I'm sorry, but I have to correct my previous statements:
- the ~/.config/geany/geany.css file */DOES/* have an influence on the
tab styling, you have to close Geany and restart it to take effect. The content of the CSS file I included can be added at the end of geany.css.
Apologies,
No problem, I was just about to report that. Your code works. Only thing -- and it's trivial -- would be to get rid of the little blue bar now. Thanks Lucas.
Hey there,
Ray Andrews via Users wrote:
I cut and pasted that into new file: /root/.config/geany/geany.css and I get this msg:
You'll want to remove the two angled brackets followed by a space at the beginning of each line so that it ends up looking like this:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { border-top-width: 3px; border-top-color: #FC7BF4; margin-top: 0; padding-top: 1px; }
I also added the background-color property (with a white value, but you can pick any color) to mine, so it looks like this:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { background-color: "white"; border-top-width: 3px; border-top-color: #FC7BF4; margin-top: 0; padding-top: 1px; }
On 2023-01-04 08:59, Little Girl via Users wrote:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { background-color: "white"; border-top-width: 3px; border-top-color: #FC7BF4; margin-top: 0; padding-top: 1px; }
(geany:4657): Geany-WARNING **: 11:23:04.479: Failed to load custom CSS: geany.css:44:22'' is not a valid color name
... God knows. line '44' is "background-color: "white";" ... so what's invalid about that is beyond me.
However, as Lucas suggests:
/* Color of active TAB */ notebook tab:checked { border-color: blue; border-width: 5px; } ... is pretty much just what I want, the active tab stands out. Funny tho, there's still the thin, lighter blue bar at the bottom of the tab, but at least now the whole tab has a bold blue border.
Hey there,
Ray Andrews via Users wrote:
(geany:4657): Geany-WARNING **: 11:23:04.479: Failed to load custom CSS: geany.css:44:22'' is not a valid color name
... God knows. line '44' is "background-color: "white";" ... so what's invalid about that is beyond me.
Blast. That's my fault. I'm sorry. There shouldn't be quotes around white, so the rule should be:
background-color: white;
However, as Lucas suggests:
/* Color of active TAB */ notebook tab:checked { border-color: blue; border-width: 5px; } ... is pretty much just what I want, the active tab stands out. Funny tho, there's still the thin, lighter blue bar at the bottom of the tab, but at least now the whole tab has a bold blue border.
Have you tried border-top-color instead of border-color?
On 1/4/23 10:25, Ray Andrews via Users wrote:
On 2023-01-03 17:23, bork via Users wrote:
notebook > header.top > tabs > tab:hover:not(:checked), notebook > header.top > tabs > tab:checked { border-top-width: 3px; border-top-color: #FC7BF4; /*test- pink top border. Change as desired. */ margin-top: 0; padding-top: 1px; }
I cut and pasted that into new file: /root/.config/geany/geany.css and I get this msg:
(geany:3288): Geany-WARNING **: 08:20:34.428: Failed to load custom CSS: geany.css:1:0Expected a valid selector
I think you misunderstood or I wasn't clear 'nuf. (In Linux), the geany.css file - PROBABLY located /usr/share/geany/geany.css.
Normally, & esp. for "non-expert" coders (I am not), not a good idea to edit root owned files. WHEN possible, copy the file into the user home directory (~/). But not executable or library files, etc. In your user home dir, you don't (& should NOT) be using "root-anything" - in code, as a gen. rule.
In Linux, the "~/.config" folder is used by many apps to place their "config" files. They may be conf, config, xml or other.
Just go to ~/.config. See if a geany folder exists. If not, create it so path is: ~/.config/geany/. Then Right click & COPY (don't try to cut / paste) the geany.css file FROM: /usr/share/geany/ into .config, so it looks: .config/geany/geany.css.
Once it's copied to user's home dir, it's no longer root owned. Since CSS isn't a core file or executable, that's not a security issue. But editing root owned files in root owned directories CAN be security risk, depending.
Once it's in /home/user-name/.config/geany/, the geany.css file will override the one in /usr/share/. Then WITHOUT adding any "/root/" part, just paste the code, just as I listed, at the bottom of the geany.css file you just copied, then save.
You'll have to restart geany - if running, for code to change. If that doesn't work, open the Settings app, that contains Themes or Appearance (depending on the distro). Select a different theme - it needs to be a theme from the "Controls" section of themes (not a panel/ desktop, or window borders / title, or mouse theme, etc.).
Then switch right back to the theme you had - that makes lots of apps start using the changed code that affects UI.
You can also copy entire Linux themes from root owned locations the same way, into ~/.themes. Rename the copied theme's main folder, to like "my-mint-x-aqua" or such, so you can tell (in Settings > Themes) which ones are in your home/.themes location & you edited them. It's MUCH better than trying to edit themes in root-owned location- & screwing something up.
Then edit the hell out of them in ~/.themes. If it totally screws up, just delete it from the /home/.themes folder & start over.
On 2023-01-06 21:08, bork via Users wrote:
Normally, & esp. for "non-expert" coders (I am not), not a good idea to edit root owned files. WHEN possible, copy the file into the user home directory (~/). But not executable or library files, etc. In your user home dir, you don't (& should NOT) be using "root-anything" - in code, as a gen. rule.
Bork:
It's all good. I run as root all the time. I know I'm not supposta, but I do. In 10 years of running Linux I've had one problem, namely a .jpg downloaded without permission. I'm always tinkering with root-owned files so I just got sick of sudoing back and forth and I just stay as root.
On 1/7/23 08:50, Ray Andrews via Users wrote:
On 2023-01-06 21:08, bork via Users wrote:
Normally, & esp. for "non-expert" coders (I am not), not a good idea to edit root owned files. WHEN possible, copy the file into the user home directory (~/). But not executable or library files, etc. In your user home dir, you don't (& should NOT) be using "root-anything" - in code, as a gen. rule.
Bork:
It's all good. I run as root all the time. I know I'm not supposta, but I do. In 10 years of running Linux I've had one problem, namely a .jpg downloaded without permission. I'm always tinkering with root-owned files so I just got sick of sudoing back and forth and I just stay as root.
Now there's something not seen everyday! A Linux user that has their everyday login running as root. To each their own. But honestly, if you constantly use linux in root mode, you may not know how many "problems" there have been. That your bank accounts haven't been emptied (I assume) is a good thing. There's lots else someone can do once they have control of your machine, that you may / may not know about.
"Tinkering w/ root owned files" (while off line) is one thing. But why would you browse the web, download files & any other activity not needing root, constantly in root mode?
On 2023-01-12 15:51, bork via Users wrote:
"Tinkering w/ root owned files" (while off line) is one thing. But why would you browse the web, download files & any other activity not needing root, constantly in root mode?
Simply because it's simpler not to have to bounce back and forth. Perhaps one day I'll get stung and then learn my lesson but for now, I can say that it's never been a problem for me running as root. I know it's not the approved thing.