[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: [gtkmm] Color and Font in a label
From:       Paul Davis <pbd () Op ! Net>
Date:       2002-01-25 18:04:11
[Download RAW message or body]

>The way I prefer is to use .rc files.

absolutely. 

>here is an example for setting the color to dark grey, with a font
>specified.

here i disagree. i don't like to name styles so generically. it means
that if you change the definition of "dkgrey", all widgets using it
change color. i prefer to create styles named after their intended
uses. here's a sampling from one of my RC files:

style "very_small_text"
style "small_text"
style "small_bold_text"
style "medium_text"
style "large_text"
style "default_window" = "medium_text"
style "default_base"
style "menu_bar_base"
style "fatal_message"
style "error_message"
style "info_message"
style "warning_message"
style "basic_base" 
style "orange_on_black_entry" = "medium_text"
style "cyan_on_teal_entry"  = "medium_text"
style "big_clock_display" = "orange_on_black_entry"
style "smaller_clock_display" = "medium text"
style "track_separator"
style "editor_window" 
style "main_canvas_area"
style "edit_controls_base"
style "black_mackie_menu_bar" = "medium_text"
style "command_indicator" = "medium_text"
style "backup_header_label" = "large_text"
style "track_list_display" = "small_bold_text"
style "region_list_display" = "small_bold_text"
style "small_blue_gray_button" = "very_small_text"
style "mixer_solo_button" = "very_small_text"
style "mixer_mute_button" = "very_small_text"
style "mixer_green_active_button" = "very_small_text"
style "wall_clock" = "medium_text"
style "red_when_active" = "medium_text"
style "prompter_window" = "default_window"
style "prompter_label" = "prompter_window"

this lets me (or a user) change the appearance of, say, the Mixer solo
buttons without that affect the Mixer Mute Buttons, which might, by
default, use the same style under your scheme.

just my $0.02 ...

--p

_______________________________________________
to unsubscribe or change your subscription parameters :
https://lists.sourceforge.net/lists/listinfo/gtkmm-main
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic