So, I've gone ahead and implemented an option for adding gradients to scrollbar troughs. I'm pasting the patch below -- it would be great if you would consider it for inclusion in the engine! In addition, it would be nice to get similar gradients on all other troughs too. Maybe I'll add those later.
.
The patch implements two new rc options that allow you to set the trough gradient like this:
trough_gradients = TRUE
trough_shades = {0.90, 0.975, 0.975, 1.05}
.
My patch should be applied to the latest version in Git. For reference, here's what "git show" gives me:
Currently, in dark themes, a white shadow appears in the fg of INSENSITIVE widgets. It would be nice to have the option to remove the shadow or to choose a different color.
It's not so obvious on other background.
And I checked the changelog, which reads
"2009-01-04 Andrea Cimitan <andrea.cimitan@gmail.com>
* src/cairo-support.c (murrine_draw_lightborder), (murrine_draw_glaze): Removed horizontal parameter to lightborder, this fixes spinbuttons, but could break vertical widgets, please test and report bugs if you see a misplacement of the lightborder." Does this has sth to do with the problem?
1. GtkEntry: ocurrs when toolbarstyle = 1 or 2 (non-flat), bg[NORMAL] of entry is different from the toolbar.
2. GtkSpinbutton: ocurrs when bg[NORMAL] of spinbutton is different from the widget below spinbutton, e.g. notebook, normal bg.
workarounds: align same/similar bg[NORMAL] for affected widgets.
Honestly, I don't like the current arrows, which are used in scrollbar_steppers and ComoboxButtons, as they don't look like the arrows within treeviews (I don't need a screenshot, because everybody can see this in nautilus).
Of course, most themes won't look good with another arrow style now, but new arrows will be an interesting feature.
Here you can see my idea for the new engine-option
arrowstyle = 0 # (default Clearlooks-like arrow-style)
arrowstyle = 1 # (filled triangle - the old murrine scrollbar arrow, but also for the ComboBox and MenuItems)
Although the output of the murrine rgba thing is quite convenient for customizing .profile, it renders dialog applications like zenity almost useless. Like this:
user@desktop$ echo `zenity --entry` #filled in: blahblah
progname=zenity; RGBA=on blahblah
So the usage of zenity in scripting gets screwed unless I go berserk with awk. Feature request: I'm not sure. There is a difference between stdout and stderr, right? Or make some .log file. Or create a verbose / debug switch to be called in .profile. I don't know how difficult it all is, so the right feature choice is up to you.
I couldn't find a better place to submit this so here it is. Murrine does not mean "glass artworks done by Venetian (or Muranese) glassblowers." It means glass tiles with color in them that are often laid out to create patterns on glass pieces.
http://en.wikipedia.org/wiki/Murrine
First of all thanks for your work, it's really good. My question is to enable control over the background of the progressbar that is not yet filled. In the clearlooks engine this would be bg[NORMAL] but in murrine this only controls the border color. I hope my question is clear.
I don't know if it's possible, cause I cannot understand if all the lines I don't like, belong to GtkFrame widgets. If it's so, it should be sufficient to add an option in the engine to set GtkFrame::shadow-type = GTK_SHADOW_NONE.
I add an image showing what's the situation now and a mockup of what I would, in thunar and medit
P.S.
If there's a simple solution, Cimi, you can reply to me here
Hello, it would be nice to add shadows for several widgets: buttons, frames, checkbuttons, entries, scrollbars, sliders, etc. which can make murrine look more modern.
Here's a mockup from NODOKA:
https://fedorahosted.org/nodoka/wiki/0.8.x_Brainstorm#MODERN
Please,if possible, add effects options to content of widgets.
E.g.:
Options: blur, glow, shadow, etc applied to icon.
Button with icon.
Button state normal - no effects
Button state disabled - blur content of button (icon)
Like Bespin style in KDE.
Sorry for bad English.
It is a square right now, and ignoring the roundness option.
And btw, GtkScale/slider is one of the last widgets that don't have a rounded apparence. Could you make it use roundeness option too?
- Scrollbar trough caps should have no roundness to match scrolled-window that is always squared (or at least an option for it)
- Honour scrollbar-whitin-bevel property. Currently, it's draw outside the scrolled-window, having a border on all sides (which leads to a 2px border if you use scrollbar-spacing = 0).
First, I also posted this at launchpad, but so far mine is the only question there. If this is the wrong place to post a question -- if it should be a bug request or somplace else, please just let me know and we'll nix this post.
This is a weird feature request, because it's not really related to the Murrine engine per se.
Given your expertise in GTK engines, and your knowledge about best practices and pitfalls of engine design, it would be amazing for the community if there was a barebones cairo-based engine that just painted every widget as a simple black-and-white box. Engine-authors-to-be could, then, just take that code as a template from which to create their own engines.
What do you think?
I know that the Aurora engine has something kind of like this (when hovering over widgets, there are two steps in drawing the highlight). Judging from the fact that checkboxes and radiobuttons can fade, I would also venture a guess that it wouldn't be too terribly difficult to do with Cairo. The only thing is that it might cause a fair amount of overhead, which would be completely counter to what Murrine is all about.
I miss it, it's the last connection to the old Clearlooks-Engine and looks more nice than a single gradient. Please give at least an option for the stripe? I feel sure that some more would appreciate it.