dmedvinsky / gsimplecal

Simple and lightweight GTK calendar (BSD license)
http://dmedvinsky.github.io/gsimplecal
Other
198 stars 19 forks source link

How to set background color on week number & day header? #28

Closed xuanngo2001 closed 7 years ago

xuanngo2001 commented 7 years ago

How to set background color on week number & day header like in your screenshot(it is blue). Mine is white.

dmedvinsky commented 7 years ago

Sorry, currently in the hospital with no computer so I can't give you any details, but the short answer is that it solely depends on your GTK theme. Gsimplecal itself doesn't set any colors, so you need to research the GTK themes subject.

On Jan 20, 2017 22:52, "limelime" notifications@github.com wrote:

How to set background color on week number & day header like in your screenshot(it is blue). Mine is white.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dmedvinsky/gsimplecal/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGXivzZF2_QgMWEIIwySMm2PWVXkYl9ks5rURCHgaJpZM4Lprov .

xuanngo2001 commented 7 years ago

Solution: Change /root/.config/gtk-3.0/gtk.css

/* Calendar week, day label */
GtkCalendar.highlight 
{
    background-color: #398ee7;
    color: white;
    font-weight: bold;
}

/*Calendar content*/
GtkCalendar.view
{
    background-color: $selected_bg_color;
    text-align: right;
}

/* day selected */
GtkCalendar:selected
{
    background-color: $selected_bg_color;
}

/* Month and year */
GtkCalendar.header
{
    color: $selected_fg_color;
}