Commit Graph
98 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 8f34049793 views: sync header labels' style
The Week view exposed a bug where we had different
CSS selectors for the exact same label. This made
them look inconsistent, with different colors and
paddings.

Fix that by ensuring they all use the same style
class. The Year view drawing code needed to be
reworked a little.

https://bugzilla.gnome.org/show_bug.cgi?id=778391
2017-02-09 10:28:28 -02:00
Georges Basile Stavracas Neto d63e007a7a week-grid, week-view: improve hour sidebar rendering
The hour strings are too soft and can barely be read. Fix
that by setting a stronger color.

https://bugzilla.gnome.org/show_bug.cgi?id=777420
2017-02-09 09:21:28 -02:00
Georges Basile Stavracas Neto ba871e4004 theme: reduce vertical padding
This reduces each hour cell's height, and makes more of the
week grid visible at a glance.

https://bugzilla.gnome.org/show_bug.cgi?id=777767
2017-02-01 15:07:46 -02:00
Georges Basile Stavracas Neto 1cab5278f1 style: smoother selection background 2016-12-14 17:11:11 -02:00
Georges Basile Stavracas Neto ffaf7153d7 week-header: implement event creation 2016-12-14 17:00:11 -02:00
Georges Basile Stavracas Neto 343283e37a week-grid: implement event creation 2016-12-13 16:29:07 -02:00
Georges Basile Stavracas Neto 7e68588cfb week-header: rework drawing model 2016-12-08 03:09:35 -02:00
Georges Basile Stavracas Neto e5407d8c72 week-grid, week-header: special-case today when drawing
The week grid should display a horizontal strip on the today
column, and the week header should draw the week day labels
with a custom color.
2016-12-08 03:09:35 -02:00
Georges Basile Stavracas Neto 2e7c6c8c58 week-header: visual improvements 2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto 39076d1aaf style: update hour sidebar padding 2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto 16a2d64874 week-header: simplify background drawing code
By moving the drawing area to a separate place, we're
able to avoid having to manually calculate the sidebar
width.

Also, because we can, the drawing code was simplified a
little bit by moving the bottom border to CSS.
2016-12-01 23:48:54 -02:00
pandusonu2 680f220fb2 week-view: draw the hours labels
Draw the hour labels in the sidebar of the week grid.
2016-12-01 23:48:53 -02:00
pandusonu2 d6ef05b31d week-header: adjust theming to match the mockups
Set correct font weight, size and draw lines where required.
2016-12-01 23:48:53 -02:00
pandusonu2 1122b24216 week-header: modify the draw() to match mockup
Made changes in the draw() to match the mockups.
2016-12-01 23:48:53 -02:00
Georges Basile Stavracas Neto 591d8af5e4 theme: add a nice transition on the month chooser widget 2016-10-03 19:56:42 -03:00
Georges Basile Stavracas Neto 7104c95ffb month-view: fix DnD highlight
https://bugzilla.gnome.org/show_bug.cgi?id=771115
2016-09-14 14:01:37 -03:00
nj4710 27ca660e77 month-view: highlight the whole cell of current day
In this commit, we changed the background area of current day.

Presently, the current day is highlighted by the number. This makes difficult for the user to identify it when there are lot of events.

To fix this, we changed the color of background and made background area equal to the cell's area.

https://bugzilla.gnome.org/show_bug.cgi?id=755946
2016-08-17 03:13:53 -03:00
Lapo Calamandrei e3d29c989e date-selector: change style class on other month days
use .other-month in place of .dim-label since the .dim-label style
was not fitting, so better to use a specific class then a generic
one.
2016-07-26 18:58:52 +02:00
Lapo Calamandrei 095a209615 css: restyle date chooser...
...making it more consistent with shell calendar and gtkcalendar.
2016-07-24 18:55:21 +02:00
Georges Basile Stavracas Neto faf85a7fb0 date-chooser: support hovering days
Another fixup in order to make the current date chooser
more streamlined with GNOME Shell's calendar.
2016-07-23 17:47:12 -03:00
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