May 21, 2019, 10:50:33 PM

Author Topic: Setting the IDE color (including widgets and menus) in Windows.  (Read 2040 times)

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Worked!  8)


Many thanks.

[EDIT]
Tried a few different ones and what works best for me during night and daytime is indeed
in View->Color Scheme->Geany Tango Dark combined with adding include "../share/themes/ClearlooksDarkOrange/gtk-2.0/gtkrc" to
C:\Program Files (x86)\The Game Creators\AGK2\Tier 1\Editor\data\geany.gtkrc (below line 41 as you suggested)

geany.gtkrc
Code: [Select]
# make close button on the editor's tabs smaller
style "geany-close-tab-button-style" {
GtkWidget::focus-padding = 0
GtkWidget::focus-line-width = 0
xthickness = 0
ythickness = 0
}
widget "*.geany-close-tab-button" style "geany-close-tab-button-style"

# use monospaced font in search entries for easier reading of regexp (#1907117)
style "geany-monospace" {
font_name = "Monospace"
}
widget "GeanyDialogSearch.*.GtkEntry" style "geany-monospace"
widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace"

# set red background for GtkEntries showing unmatched searches
style "geany-search-entry-no-match-style" {
base[NORMAL] = "#ffff66666666"
text[NORMAL] = "#ffffffffffff"
}
widget "*.geany-search-entry-no-match" style "geany-search-entry-no-match-style"

# document status colors
style "geany-document-status-changed-style" {
fg[NORMAL] = "#ffff00000000"
fg[ACTIVE] = "#ffff00000000"
}
style "geany-document-status-disk-changed-style" {
fg[NORMAL] = "#ffff7fff0000"
fg[ACTIVE] = "#ffff7fff0000"
}
style "geany-document-status-readonly-style" {
fg[NORMAL] = "#00007fff0000"
fg[ACTIVE] = "#00007fff0000"
}
widget "*.geany-document-status-changed" style "geany-document-status-changed-style"
widget "*.geany-document-status-disk-changed" style "geany-document-status-disk-changed-style"
widget "*.geany-document-status-readonly" style "geany-document-status-readonly-style"

#include "../share/themes/MS-Windows/gtk-2.0/gtkrc"
#include "../share/themes/Nodoka-Midnight/gtk-2.0/gtkrc"
include "../share/themes/ClearlooksDarkOrange/gtk-2.0/gtkrc"
#include "../share/themes/ClearlooksDark/gtk-2.0/gtkrc"
#include "../share/themes/MurrinaNeoGraphite/gtk-2.0/gtkrc"
#include "../share/themes/Rezlooks-graphite/gtk-2.0/gtkrc"

Again many thanks, this will really save my eyes and a lot of headaches.
[EDIT2]
Shared the solution on the AGK forums, just in case someone wonders how to do this too.
https://forum.thegamecreators.com/thread/221767#msg2620469

*And there's actually another(better) one for the widgets, menus and stuff then ClearlooksDarkOrange, called Adwaita, Zipfile posted by c0d3r9 here: https://forum.thegamecreators.com/attachment/81403"






To do this: Follow the instructions in
C:\Program Files\The Game Creators\AGK2Trial\Tier 1\Editor\Changing IDE Theme.txt

The above screenshot is using
include "../share/themes/Nodoka-Midnight/gtk-2.0/gtkrc"

(line 41 of the geany.gtkrc file)

You can even download new ones from www.gnome-look.org and other websites - should be for GTK 2.x then.


bye
Ron



Quote
PS: Maybe Qube could split our posts into a new thread - from your "quoting me" phost about the trial up to this - to avoid derailing that thread.

Good idea. Qube?

Apparently they're using the default win gui colors(bright) and the GTK ones do not appear to be effecting this. Now MS in all it's wisdom has provided us with a 'nice'  setting under: "Personalize>Colors>Default app mode:Dark"

Which in theory changes the white backgrounds to dark, but-but-but.. as you might have guessed, not so well implemented, for soon as I open Notepad or even an Explorer window, surprise-surprise:  white background is back.
Only works onto parts of the OS gui the actually bothered to take a look at I guess, such as the new Settings panel..



As the other things are System-based widgets. Maybe you could edit your Editor/share/geany.gtkrc.windows and append some stuff to manipulate widget appearance but I never tried, so dunno if this would be successful or not.

Edit: having duckduckgo'd for "geany.gtkrc.windows dark theme" I found this:

geany with a dark theme (and German localization - which the AGK dudes removed somehow as I got only partial texts translated, even the most ones translated on my Geany are English on theirs)

http://www.henrykoch.de/en/geany-editor-in-ubuntu-configure-a-dark-colored-theme



bye
Ron



As the other things are System-based widgets. Maybe you could edit your Editor/share/geany.gtkrc.windows and append some stuff to manipulate widget appearance but I never tried, so dunno if this would be successful or not.

Edit: having duckduckgo'd for "geany.gtkrc.windows dark theme" I found this:

geany with a dark theme (and German localization - which the AGK dudes removed somehow as I got only partial texts translated, even the most ones translated on my Geany are English on theirs)

http://www.henrykoch.de/en/geany-editor-in-ubuntu-configure-a-dark-colored-theme



bye
Ron



Yep, it says "Built on Geany 1.24.1"

Set the Color Scheme to "Geany Tango Dark" which I like best for my eyes.
What I never get though is why in IDE's they let you change the color scheme *only* for the code itself, almost never for the menu bars, windows etc, so always leaving this too high contrast which pains my eyes.

Luckily you can swiftly swap using "Toggle All Additional Widgets" but that still leaves the Project pane which I then manually move out of the way, but still stuck with a menu bar of course..



Thanks Rick.

Is the IDE on Windows also based on Geany? (on Linux it starts a rebranded "based on Geany 1.24" variant of geany). As Geany is GPL some sources need to be provided too - at least they do for some stuff. Found the part for functions definitions (TagManager) but still looking for the Debugger-stuff. For my geany I made a BlitzMax-Module only being activated when focusing a .bmx file (it then adds compilation options + buttons to the menu) but it still misses the tooltips for functions (params), some kind of autocomplete and the debugger stuff.
At least they (AGK creators) chooses a fast and nice scintilla-editor as base.


bye
Ron



.. Did not have it installed as ... ok, it costs money? ... wanted to write I haven't had the motivation to try it out but ... it costs money so it is nothing I would choose now (while I understand that people want to earn things for a living).

*Free limited trial: https://www.appgamekit.com/trial
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #1 on: February 11, 2019, 04:23:04 PM »
Update(seem to have forgotten to mention here):
For changing the font default font to a modern mono spaced type for easy align and readability I use:

In Preference>Interface>Fonts>
select..
Editor:         Montserrat SemiBold Semi-Bold 9
Symbol list:    Sans 7
Message window: Sans 9

https://fonts.google.com/specimen/Montserrat
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline GaborD

  • Sr. Member
  • ****
  • Posts: 259
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #2 on: February 11, 2019, 05:52:46 PM »
You'll be happy to know that Studio comes with the dark look (very similar to the settings you switched to) as default :)

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1771
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #3 on: February 11, 2019, 06:07:28 PM »
Quote
You'll be happy to know that Studio comes with the dark look

A certain company added it to their OS as standard, not that they made a song and dance about it  ::)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #4 on: February 13, 2019, 05:20:40 PM »
Quote
You'll be happy to know that Studio comes with the dark look

A certain company added it to their OS as standard, not that they made a song and dance about it  ::)

As they all should!  ;D
Why on earth people ever decided it was a good idea to have black characters on bright white lamp shining in your face is still a mystery to me. Plus is bad for battery life on OLED screens.
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1771
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #5 on: February 13, 2019, 05:35:15 PM »
Quote
Why on earth people ever decided it was a good idea to have black characters on bright white lamp shining in your face is still a mystery to me.

Trying to mimic traditional black ink on white paper, but yes for staring at a screen for lengthy periods it tires the eyes.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline c0d3r9

  • Full Member
  • ***
  • Posts: 112
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #6 on: February 13, 2019, 06:12:39 PM »
indeed, white letters of black paper(or such colors) are better for the eyes.
And anywhere on the web i found a solution to invert pdf´s colors....some month ago....i can´t remember.
Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 8GB Ram - 240GB SSD

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #7 on: February 13, 2019, 06:16:46 PM »
Until they get electronic ink / paper to work properly for computers, I think they should stick to the dark tones by default and make light themes optional for those with eyes made out of solid steel.  :))
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline GaborD

  • Sr. Member
  • ****
  • Posts: 259
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #8 on: February 13, 2019, 06:28:29 PM »
Yeah I wonder if anyone ever said "I totally prefer the bright theme, I want my eyes to hurt" :)

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 571
  • Cerberus-X Dev Team
    • Cerberus X
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #9 on: February 13, 2019, 09:04:05 PM »
You'll be happy to know that Studio comes with the dark look (very similar to the settings you switched to) as default :)
ROFL. And I saw that you can now start the ide with a random color. Each time you start it. Now if that is not innovation, then what is. And super feature that make everyone should by it. Jeez  8)

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #10 on: February 13, 2019, 10:50:20 PM »
Speechless... :o  ROFL please someone slap me!  :))
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #11 on: April 16, 2019, 09:39:31 PM »
Hmm. Just installed the latest version of AGK, but was bit surprised to find that the editor that comes with it is a different version that doesn't allow for the previous approach on changing colors of the GUI.

This is a bit of a pity for I'm not too eager using the Studio IDE when things are changing and still buggy.
(no time to be guinee pig at this stage)

Not a happy customer here.

 :(
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline blinkok

  • Jr. Member
  • **
  • Posts: 92
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #12 on: April 16, 2019, 10:15:08 PM »
That seems really weird. I wonder why they would bother taking the time to remove that stuff when they're developing studio.
Maybe go back a version and copy over the compiler
Have you posted this over on the TGC forums?

Offline c0d3r9

  • Full Member
  • ***
  • Posts: 112
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #13 on: April 16, 2019, 11:03:54 PM »
just copy geany.gtkrc from [...AgkStudio\media\data] into your AGK folder [...AGK2\Tier 1\Editor\data]  ;)
Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 8GB Ram - 240GB SSD

Offline blinkok

  • Jr. Member
  • **
  • Posts: 92
Re: Setting the IDE color (including widgets and menus) in Windows.
« Reply #14 on: April 16, 2019, 11:38:00 PM »
That didn't work for me. Just changes the colours in the edit window, not in the other windows