use placeholder_text_color for welcome secondary text
Bug #1322922 reported by
Danielle Foré
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Granite |
Fix Released
|
Low
|
Unassigned | ||
elementary Stylesheet |
Fix Released
|
Undecided
|
Danielle Foré |
Bug Description
Instead of using insensitive text, it makes more sense to use the same color as placeholder text
Related branches
lp:~elementary-apps/granite/fix-welcome-style
- Danielle Foré: Approve
- Robert Roth (community): Approve
-
Diff: 58 lines (+6/-13)1 file modifiedlib/Widgets/Welcome.vala (+6/-13)
Changed in granite: | |
status: | Confirmed → Fix Committed |
milestone: | none → freya-beta2 |
Changed in granite: | |
status: | Fix Committed → Fix Released |
Changed in egtk: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is the code used by Gtk.CellRendere rText. I can't quite wrap my head around what is going on here:
PangoColor color; ontext *context;
GtkStyleC
GdkRGBA fg = { 0.5, 0.5, 0.5 };
context = gtk_widget_ get_style_ context (widget); style_context_ lookup_ color (context, "placeholder_ text_color" , &fg);
gtk_
color.red = CLAMP (fg.red * 65535. + 0.5, 0, 65535);
color.green = CLAMP (fg.green * 65535. + 0.5, 0, 65535);
color.blue = CLAMP (fg.blue * 65535. + 0.5, 0, 65535);
add_attr (attr_list,
pango_ attr_foreground _new (color.red, color.green, color.blue));