Commit Graph
79 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto c2dca8a3dc date-chooser: add date chooser widget
This is mainly a copy-paste from an old branch authored
by Matthias Clasen. The code style was updated to match
Calendar's one, and the theming was improved a little bit.
2016-07-23 17:47:11 -03:00
Lapo Calamandrei ed4782116e css: remove broken linked entry style
inherit linked entries styling from the theme.
2016-07-09 18:27:51 +02:00
Lapo Calamandrei 8be2ece30e css: remove some ugly selectors
since Georges added all the styleclasses in the needed places.
2016-07-08 21:54:05 +02:00
Lapo Calamandrei 863915feb1 css: style the calendar color dot
remove the unneded and ugly hover effect on buttons and add a
subtle shadow.
2016-07-08 20:44:58 +02:00
Lapo Calamandrei 318c200d6f css: -gtk-icon-shadow in place of icon-shadow
muscle memory fail.
2016-07-08 01:59:28 +02:00
Lapo Calamandrei 7f8cb1a25d css: simpler edit-dialog headerbar button
make it full height and visually cleaner.
2016-07-08 01:56:06 +02:00
Lapo Calamandrei 7160da43a7 css: fix a bogus selector from the previous commit. 2016-07-08 01:28:16 +02:00
Lapo Calamandrei a6bc9da636 css: year-view sidebar
add some padding and move no events label down a bit to better line
up with events in the list.
2016-07-08 01:23:22 +02:00
Lapo Calamandrei e54b023f06 css: remove year-view button superfluous side border. 2016-07-08 01:09:17 +02:00
Lapo Calamandrei 53d28d73b8 year-view: remove a superfluous border
simplify the related css and add correct backdrop colors in the
process.
2016-07-08 01:01:41 +02:00
Georges Basile Stavracas Neto bbcf20cf44 edit-dialog: add a button in the headerbar
This button will be used to select the new source of the event.
2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto 44f5cbe607 year-view: render DnD selector on hover
This commit adds the ability to render a DnD square
to give visual feedback for the hover operation.
2016-05-21 18:54:47 -03:00
Georges Basile Stavracas Neto 982b7da02b month-view: draw a drop target background
When dragging an event, it is very important to have
a visual feedback of the possible target areas.

As such, add a gtk_render_background() call to render
the drag cell's background.
2016-05-21 18:54:47 -03:00
Georges Basile Stavracas Neto 6a8a4dfad0 year-view: add hover effect to the navigator
The current implementation of the Year navigator gives
absolutely no clue that the days are actually selectable,
which may confuse some users.

A simple way to inform the user that the Year navigator
is actually interactive is the hovering effect.

Fix the lack of feedback by adding the hover effect to the
year navigator.

https://bugzilla.gnome.org/show_bug.cgi?id=762462
2016-05-20 22:09:00 -03:00
fosero feedfa4be5 gtk-styles.css: adapt to GTK+ 3.21 CSS strictness
GTK+ 3.21 is stricter about CSS values having a unit defined. Fix the
gnome-calendar CSS accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=765698
2016-05-20 11:20:53 -03:00
Isaque Galdino 97d8859574 year-view: Remove hardcoded values
Improve year-view code, removing hardcoded values.

year-view have hardcoded values for grid cell sizes (width and height).
Those values need to be recalculated every time a change in font or any
other style are changed.

Sidebar width was also hardcoded instead of getting its value directly
from the ui file. That would prevent it from drawing the content
accordingly when ui file is changed.

This patch fixes those two issues by retrieving those values from CSS or
ui files.

This patch also adds code to resize and redraw the window when
show-week-numbers property is changed.

Popover mode was also changed and now sidebar will always be shown when
show-week-numbers is set or when there is space for only 3 or less
columns.

https://bugzilla.gnome.org/show_bug.cgi?id=753533
2016-05-16 12:03:39 -03:00
Georges Basile Stavracas Neto b03edc6cd4 theme: drop .views CSS class
The default class for content viewers in Gtk+ is .view and
ideally provided by the theme. Not only that, but it provides
the exact same functionality of ours, but in a way that is
overridable for theme designers.

Fix this issue by removing the class from out CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=765664
2016-05-08 14:45:57 -03:00
Isaque Galdino 8af0e6f84e year-view: Week numbers shown in big dark squares
Design team testing with GNOME continuous, complained about week numbers
being shown in big dark squares. According to them, these wreck the
layout of the view.

Design team listed the issues, comparing to gnome-shell calendar as:
 * The containing boxes are larger in Calendar.
 * The background of the boxes has more contrast with the background (it
should be a lot lighter in Calendar).
 * Week numbers are an option in the shell, and are off by default.

This patches fixes the two first items: week numbers box' size and
color. Option to set on/off week numbers will be implemented in a future
patch.

https://bugzilla.gnome.org/show_bug.cgi?id=763251
2016-03-10 23:29:06 -03:00
Georges Basile Stavracas Neto 67e370034a style: fix white on white current day on year view 2016-03-01 01:19:41 -03:00
Isaque Galdino 1e2a0d1a3d year-view: Change week numbers style
Week numbers in year view was using a small and very light style and
that was making difficult for users to be able to read it.

After a few conversation with gnome-design team, they proposed the best
approach it would be to use the same style as gnome-shell panel does.

The week numbers style was changed to be as close as possible to the
gnome-shell panel.

https://bugzilla.gnome.org/show_bug.cgi?id=759354
2016-02-22 00:04:08 -03:00
Georges Basile Stavracas Neto 1a77668b40 style: improve style 2016-02-18 02:11:08 -02:00
Isaque Galdino e8c75cea32 year-view: Added visual clue for days with events
Year view didn't have hints for days with events and this feature was
requested to be added to gnome-calendar.

This is an old request but in the past gnome-design team though it would
be better to keep the layout simple without hints for days with events.
Now with the changes in gnome-shell calendar and in order to keep them
in sync, this feature was added to gnome-calendar.

In order to implement this code we had to add a few css styles and a
code to add a small circle below everyday with events. Although
gnome-shell calendar uses an svg image with a 3x3 dot, we chose to use a
pango function to draw the dot.

https://bugzilla.gnome.org/show_bug.cgi?id=743317
2016-01-29 22:51:12 -02:00
Georges Basile Stavracas Neto b7e6de4c13 year-view: fix wrong padding
Since we're using css nodes now, the calendar-view
node overrides anything we could possibly set up. In
fact, I don't know how it was working before.
2016-01-04 19:22:28 -02:00
Georges Basile Stavracas Neto 21f3ed1ef1 project: more css names fixups 2016-01-04 16:50:46 -02:00
Georges Basile Stavracas Neto 5b8a26ec71 year-view: port to css nodes
Mainly by removing the gtk_widget_get_state_flags()
calls.
2016-01-04 16:50:40 -02:00
Georges Basile Stavracas Neto 8b1054f638 month-view: set a css name
This will add a CSS Node in the style context,
and keep Calendar in sync with latest gtk+
upstream changes.
2016-01-04 16:27:40 -02:00
Georges Basile Stavracas Neto c3d34ae149 window: add a nice style to the calendar listbox 2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto e62d744cef source-dialog: Add a "Calendars" label before calendar listbox
Also, this commit correctly hides the calendar
label and list.
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto b59da7e2e0 source-dialog: show a spinner when it should be validating 2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto 61f5c9275b source-dialog: initial interface implementation
And just it, nothing else.
2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto cb532bbfbd window: port the calendar popover to GtkListBox
This is a significant rewrite of the calendar popover. Instead of adding actions to the window, it uses a internal map to find the corresponding source.
2015-05-25 12:31:04 -04:00
Erick Pérez Castellanos 12188aed7f date-selector: fix style on RTL locales 2015-03-04 10:10:24 -05:00
Erick Pérez Castellanos d447d45f2b style: shorten a bit the size of the headers 2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos eb8d16bbc7 event-widget: fix size requisition
Size requisition previously add margin to the size requested. Margin
should be taken into account outside of the widget. Moving margin to the
container and use border, which previously was not used.
2015-02-16 09:31:19 -05:00
Erick Pérez Castellanos 348be33329 app: event-widget CSS code for classes rewritten 2015-02-13 09:12:15 -05:00
Erick Pérez Castellanos 25545e5bf6 month-view: match UI style of year-view popover
year-view: rename popover class to something more generic
2015-01-28 00:16:53 -05:00
Erick Pérez Castellanos 489100ad94 year-view: popover eye candy 2015-01-27 17:25:39 -05:00
Erick Pérez Castellanos 7b6037e707 year-view: add no events label to popover mode 2015-01-27 11:31:05 -05:00
Erick Pérez Castellanos 5071b94b14 application: use events edges styles 2015-01-22 13:47:25 -05:00
Erick Pérez Castellanos 4247018bde year-view: initial UI for no events days 2015-01-20 17:06:22 -05:00
Erick Pérez Castellanos bdacaeaa59 month-view: add view headers of its own 2015-01-20 13:47:38 -05:00
Erick Pérez Castellanos 85d7461cff year-view: added popover mode 2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos 12708485db year-view: updated UI 2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos f7beeadbb2 year-view: adding second header to sidebar 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos fb3cc4caaf year-view: added update_sidebar and widget marking 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos 338f4c039f year-view: initial sidebar impl 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos 0770a12ea9 year-view: add event handling to navigator 2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos e49418a26d year-view: add navigator drawing 2015-01-20 13:11:58 -05:00
Georges Basile Stavracas Neto d5d1d37411 search-view: style it to better fit the HIG stardard 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto 95b35964cd search-view: fixed double border at the end of the list
Also, fixes a small details that the results list is
always expanded.
2015-01-09 09:16:40 -05:00