Theme framework

All except GUI problems
Post Reply
luowy
Posts: 88
Joined: Thu Dec 17, 2015 1:32 pm

Theme framework

Post by luowy »

a lot of editors and IDE have theme framwork, e.g. VS code, the dark mode is beautiful and comfortable for eyes;
I have customed a dark mode for my BB, I am very satisfied with its feeling,
but the code is hardcode,inconveniently when I want to switch back;

so I need a theme framework, but the VS code theme looks complicated, full-featured seem too heavy to port;
Does anyone have experience with this? suggestions are welcome!
Attachments
bb-dark.jpg
User avatar
adimetrius
Posts: 68
Joined: Sun Aug 04, 2019 1:02 pm

Re: Theme framework

Post by adimetrius »

Iuowy,

In Tyler - a tiling window manager for BlackBox - I have introduced a customization mechanizm that would enable you to create a dark theme.
Limitations: 1) Linux only. 2) Requires changes to module Windows, and some others patches to the Kernel; these patches have already been incorporated into BBCP 1.8 that I'm helping Ivan Denisov to make.

So, if you want to try it, you'll have to install BBCP 1.8, and then download Tyler from and follow Quick-Start instructions. https://github.com/adimetrius/TylerSrc

I would be very thankful for any feedback. Right now, it seems I'm the only user of Tyler, but I've been using the tiling interface in BB for 7 months, and it's a great productivity boost. If there would be interest in the project, I would make the effort to port it to Windows.

In the image below, I change the background color for Front window and Target window; the change is done in a text document, then a command is invoked to apply the change, and you can see front window and target window backgrounds change. Red and green are arbitrary - I don't advocate using these colors as bg )

Image
luowy
Posts: 88
Joined: Thu Dec 17, 2015 1:32 pm

Re: Theme framework

Post by luowy »

thanks, I will try it!
but, the link feedback 404, another link "https://github.com/adimetrius/Tyler" code's files only;
User avatar
adimetrius
Posts: 68
Joined: Sun Aug 04, 2019 1:02 pm

Re: Theme framework

Post by adimetrius »

Iuowy,

I have updated the repo and made it public. Please check it out again. https://github.com/adimetrius/TylerSrc
Ivan has updated the BBCP 1.8dev "cutting edge" binaries and made sure Tyler's ok with them, check 1.8dev out at https://blackbox.oberon.org/download
User avatar
René-René
Posts: 3
Joined: Thu Jul 18, 2024 5:52 am

Re: Theme framework

Post by René-René »

Trying to achieve the dark mode with MDI Interface version, I experimented with BBCB 1.7.3-a1-1133 changing the CONST defaultColor of module Ports into a variable. While I manage to change the background color and propagate it to all open windows, the same does not happen with the text color: it never changes from black.

Subsequently, I noticed that version 2.0-a1-226 offers an option to change the background color, including a radio button for light or dark mode; however, I find the same problem there: the background color is easily changed, but the color of the text fonts cannot be changed (except if you select each piece of text and change its color attribute).
User avatar
Ivan Denisov
Posts: 365
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Theme framework

Post by Ivan Denisov »

René-René wrote: Thu Jul 18, 2024 6:59 am Trying to achieve the dark mode with MDI Interface version, I experimented with BBCB 1.7.3-a1-1133 changing the CONST defaultColor of module Ports into a variable. While I manage to change the background color and propagate it to all open windows, the same does not happen with the text color: it never changes from black.

Subsequently, I noticed that version 2.0-a1-226 offers an option to change the background color, including a radio button for light or dark mode; however, I find the same problem there: the background color is easily changed, but the color of the text fonts cannot be changed (except if you select each piece of text and change its color attribute).
One user Arisu suggested to introduce default color option. I think, this is good idea. And will try to add this to 2.0 as soon as possible.
User avatar
René-René
Posts: 3
Joined: Thu Jul 18, 2024 5:52 am

Re: Theme framework

Post by René-René »

That will be a very nice feature to have in 2.0. I will bw attentive.
User avatar
Ivan Denisov
Posts: 365
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Theme framework

Post by Ivan Denisov »

René-René wrote: Sun Oct 13, 2024 7:38 pm That will be a very nice feature to have in 2.0. I will bw attentive.
Added default color option for text
Post Reply