After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780334 - GtkCalendar's top padding is off
GtkCalendar's top padding is off
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkCalendar
3.22.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-03-20 23:01 UTC by Simon Steinbeiss
Modified: 2018-05-02 18:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Steinbeiss 2017-03-20 23:01:40 UTC
GtkCalendar has some odd issues with top padding, which can be illustrated by adding some padding to the whole widget.


calendar {
 padding: 3px;
}


To fix this and get a square shaped background on the selected date (as would be the generally expected result of the above code) I wrote an ugly hack, using box-shadow:

calendar {
  padding: 9px 3px 3px 3px;
}

calendar:selected {
  background: #000000;
  box-shadow: 0 -6px #000;
}


I would say this has to be fixed in GtkCalendar itself. Subsequently some more padding should be added to Adwaita/HighContrast or even GtkCalendar itself after all. After all the current default padding looks bad/crammed with pretty much any theme...
Comment 1 GNOME Infrastructure Team 2018-05-02 18:19:03 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/791.