Decorators and ControlLook

I’ve tried to make it easier to build decorators and control looks but it’s slow going. A bunch of people have created some nice looking decorators and control looks now and it makes me happy to see. I made the TabDecorator class so that it could be subclassed allowing you to build a decorator without having to reimplement stack and tile. Some day I’d also like to make a BarDecorator class that works for full length decorators and works with S&T.

BeControlLook is the only control look I know of that doesn’t inherit from HaikuControlLook but it still needs work. There’s some code that should probably be pushed up the class hierarchy so it doesn’t have to be reimplemented in each decorator but oh well.

Nice job on the decorator it looks good. Dark mode sure has come a long way since a few years back.

1 Like

The question now is: how to make the installation of those decorators simpler?

Install Haiku Extras for now (Be Controllook), but they all can be installed like any other app. I think there are some other decorators but its in a third party repository.

I think for now the simplest way would be to have them integrated into the main tree and shipped in the extras package like the Be one. But you’ll want to polish the code to pass the review :smiley:

i think that the best way to make the install is add a package to haikuports. This decor & controllook fit better with the dark colors scheme. Maybe i can put together in only one package an push the recipe to haikuports. But… i dont know if it looks good enough to take that job
:stuck_out_tongue:

Hello All!! Share the decorator and the control lock from my github; right there are the instructions for use. Anyone who wants to contribute is welcome.

I think dark mode is just a matter of taste. In my case I prefer it since I generally use the notebook in a dark room and it allows me to rest my eyes (and of course IMHO gives it a more modern style!).

2 Likes

Hi @nhtello
Thank you for working on this. I’m using your Decorator and ControlLook and DarkTheme. Really nice work - it looks great!

Just a couple of small issues: In your instructions you have the path to copy the decorator and controlLook binaries to the wrong path. it should be:

/boot/home/config/non-packaged/add-ons/decorators
/boot/home/config/non-packaged/add-ons/control_look

Also - the theme doesn’t seem to change the font color (it is still black for me instead of white letters like your screenshots). Also the deskbar time/icons are on a gray background (not black like in your screenshots)

Also the deskbar time/icons are on a gray background (not black like in your screenshots)

After restart the Deskbar background color is black like yours

the theme doesn’t seem to change the font color (it is still black for me instead of white letters like your screenshots)

The font color of the Tracker (e.g. “Home” “Trash” “System” in your screenshot)

By default, Tracker uses black text on document background colour for list mode and same for icon mode.
With Background app, you can add a picture to folders but you can also change text colour if you check outline icons text. The text will then use panel text colour. (IMHO document text colour would be better, specially if you don’t set a background picture.)
Since this is stored as an attribute, better not do that for individual folders but for default folder. You may have to create a folder named DefaultFolderTemplate in Tracker config folder.
Once you have that set, the trick is to create a folder in icon mode on your desktop and start browsing from there. As long as you stay in this windows, all folders will adopt background settings of starting folder even those in list mode. This include folder background picture. Or, you can also, switch any folder to icon mode then back to list mode.

1 Like

oky; i will correct that in the instructions. Thanks!!!

Yes; you need to restart “Deskbar” and “tracker” first, sounds like an error in the refresh painting. When i was doing the decorator, i had to restart these services all the time :frowning:

is this a tracker bug? it is right! if i open a folder from other place that not its the “home” icon in the desktop, the letters are painted black. Also, i discover a trick: if you switch to icon view and then return to list view they are grayed out… hmmm it seems that somewhere in the tracker code this is hardcoded. Ticket for this???

Hello @Starcrasher! yes seems to be like you mention. But in my case, wen i open a folder in “icon view mode” the text is white by default… do you think that this is a bug or an a improvement in tracker?

I have written a little guide on how to make a decorator and a controlllok. If any of you see that something is wrong, let me know and I will correct it. Regards!

12 Likes

That is an amazing guide! One thing however, we usually go by Haiku, not Haiku-OS. :wink:

1 Like

It is awesome, but still needs a bit of a touch. For instance:

  • Window borders do not blend in well if they are made the same colour as the tab bar
  • Drop-dow menus and tabs look a bit out of place
  • Deskbar still looks a bit weird (especially with the light mode)
2 Likes

Made me realize this old article about the theme manager doesn’t mention where it’s been moved to… fixed :slight_smile:

Thanks @bitigchi! i will modify this things soon!

Can you send a screenshot that clarifies the second and third comments?

Thanks!

Screenshot here: https://imgur.com/a/aoeFEmg

I think the style of drop-down menus and tabs still are not coherent with the general theme. Tabs still have too much depth compared to the other user elements (not flat, round corners), and the Deskbar has that curvy bump style with the slight gradient (hopefully what I say makes sense).

I make some changes… At the moment looks like in the screenshots… but i want to make rounded corners in the yellow tab. If any have an example of how to do that, its apreciated!

The changes are pushed to the repo:

screenshot4

screenshot1

screenshot3

screenshot2

7 Likes

Tabs are much better! However window inner lines/borders are less pronounced now, and IMHO they look too flat now. A bit more contrast would be preferable.

Also scrollbar handles are nearly invisible in dark theme; and yellow selection in out-of-focus window looks weird to me. For out-of-focus window, a different tab and selection colour other than black would be great.