summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* gcal-event-editor-dialog: Use user-chosen mode in ↵Milan Crha2022-10-051-1/+1
| | | | | | | | on_ask_recurrence_response_save_cb() ...to do what the user asked for. Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/871
* gcal-month-view: Use gcal_view_set_date() to update date on scrollMilan Crha2022-10-051-1/+2
| | | | | | | This way the content of the view is updated properly, otherwise only internal GDateTime structure had been updated, but not the view itself. Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
* gcal-date-chooser: Update also `combined_choice` in set_date()Milan Crha2022-10-051-2/+1
| | | | | | | | Thus it's in sync with the rest of the date chooser. Also use a common function to replace `self->date` value. Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
* gcal_set_date_time: Avoid possible use-after-freeMilan Crha2022-10-051-2/+3
| | | | | When the `*dest` and `src` are the same, doing g_date_time_unref() can free the instance before it's assigned back to the `*dest`.
* date-chooser: Update combined-choice on date changesFlorian Müllner2022-10-051-0/+1
| | | | | | Otherwise the header will not reflect the active date. https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/876
* agenda-view: Fix translatable stringsGeorges Basile Stavracas Neto2022-09-152-4/+4
|
* window: Use two today buttons instead of movingChristopher Davis2022-08-122-27/+12
| | | | | This fixes an issue that caused flickering as the window approached a size where it could fold.
* window: Update today action enabeld state instead of button sensitivityChristopher Davis2022-08-121-10/+12
| | | | | | Button sensitivity is automatically updated with action state. By taking advantage of this we can use the `win.today` action on multiple buttons without needing to update every button.
* general: Use GcalToolbarEnd for toolbarsChristopher Davis2022-08-127-25/+114
| | | | | | | | | | | | For the sake of smooth adaptivity, we need the toolbar buttons to be constant in both modes instead of moving places from one mode to another. Instead of duplicating these groups of buttons, we can refactor them into an object for toolbars and use them in multiple places. This commit takes the widgets from the end of the header bar and creates `GcalToolbarEnd`, which is used in the header bar and the mobile action bar.
* window: Move action widgets at small widthsChristopher Davis2022-08-122-0/+41
| | | | | Moves the action widgets (Today, New Event, Search) to an action bar when the window shrinks.
* window: Use AdwLeaflet for foldable windowChristopher Davis2022-08-121-3/+9
| | | | Allows the window to shrink to a smaller width via AdwLeaflet.
* application: Port to AdwAboutWindowChristopher Davis2022-07-151-44/+29
|
* event-editor: Use AdwEntryRowChristopher Davis2022-07-072-46/+8
|
* week-view: Allow zooming with Ctrl+ScrollAdrien Plazas2022-06-232-0/+96
| | | | | So it's possible to zoom even if the device doesn't support pinching to do so.
* week-view: Split zooming into dedicating functionsAdrien Plazas2022-06-231-13/+32
| | | | This will help zooming with in other ways like Ctrl+Scroll.
* event-widget: Use .dim-label instead of a hard-coded opacityAdrien Plazas2022-06-231-1/+4
| | | | | | This uses the standard opacity for events of lower importance and ensures the opacity difference is lower in HighContrast, helping accessibility.
* manager: Bring back credentialsGeorges Basile Stavracas Neto2022-06-233-13/+4
|
* event-widget: Fix the indentationAdrien Plazas2022-06-221-57/+57
| | | | It was purposefully left broken in the previous commit.
* event-widget: Style overhaulAdrien Plazas2022-06-226-60/+55
| | | | | | | | | | | | | | | | | | This reworks the style of the event widgets to make them match the latest designs. This also supports the light and dark theme preferences and fixes some spacing inconsistencies and errors. - The orientation of events only affects how their content is laid out, not their style. - Events are fully colored accordingly to their calendar's color. - Timed events have a semi-transparent background and a kind of opaque knob on their left. - Timed events have their text colored according to the theme. - Lasting events are fully opaque, with no knob. - Lasting events have their text colored according to their calendar's color. This purposefully leaves the indentation broken to help reviewing the changes.
* Use the Libadwaita style loading mechanismAdrien Plazas2022-06-223-26/+3
| | | | | This simplifies the code and will help support the dark and high constrast variants.
* week-view: Add a zoom gestureAdrien Plazas2022-06-222-2/+66
| | | | | This will help the week view work well on small touchscreens and it also works with touchpads.
* Port to libsoup3Milan Crha2022-06-224-43/+39
|
* new-calendar-page: fix Calendar files are not shownCleo Menezes Jr2022-06-221-3/+0
|
* search-model: check for duplicate events in search barAbdullahi Usman2022-06-211-0/+19
|
* Drop the unused calendar-year-symbolic iconAdrien Plazas2022-06-202-15/+0
| | | | This icon was left unused since we removed the year view.
* calendar-button: RestyleAdrien Plazas2022-06-161-2/+11
| | | | This gives it a label and an arrow to match the new design.
* window: Fix the indentationAdrien Plazas2022-06-161-68/+68
| | | | | It was purposefully left broken in the previous commits to help reviewing the actual changes.
* window: Reorganize buttonsAdrien Plazas2022-06-162-18/+31
| | | | This matches the new design.
* window: Drop the back and forward buttonsAdrien Plazas2022-06-162-16/+0
| | | | | They aren't needed anymore as we have a date chooser, and they are absent from the new design.
* window: Add a sidebar with a date chooser and an agendaAdrien Plazas2022-06-162-0/+74
| | | | This starts implementing the sidebar of the new design.
* window: Move the toast overlay at the root of the windowAdrien Plazas2022-06-161-5/+3
| | | | This is needed to add a sidebar.
* Add GcalAgendaViewAdrien Plazas2022-06-166-0/+839
|
* event-widget: Add the timestamp-policy propertyAdrien Plazas2022-06-165-20/+91
| | | | | This gives some control on what time is displayed on the widget. It will be used to show the time of the end of an event in the agenda view.
* event-widget: Set the squeezer's margin via CSSAdrien Plazas2022-06-163-18/+11
| | | | | This ensure the style is consistent and updates itself automatically as the CSS classes change, and also makes the code simpler.
* enums: Add the GcalTimestampPolicy enumAdrien Plazas2022-06-161-0/+7
| | | | | This will be used to control more freely what timestamp is shown on event widgets.
* multi-choice: Fix the indentationAdrien Plazas2022-06-161-21/+21
| | | | It was left purposefully broken in the previous commit.
* multi-choice: Add the popover propertyAdrien Plazas2022-06-163-0/+260
| | | | | | | | | This allows a multi choice's label to be clicked to reveal a popover. It is needed by the date chooser, to have a combined month and year choice that can be split in two via a popover. This leaves the indendation purposefully broken to ease reviewing the actual changes.
* date-chooser: Add the split-month-year propertyAdrien Plazas2022-06-163-14/+191
| | | | | This allows unifying the month and year selectors into a single month and year selector by setting it to false.
* date-chooser: Implement GcalViewAdrien Plazas2022-06-163-60/+128
| | | | | This also replace the date property by the overridden active-date one ans adds the context property.
* date-chooser: Add the show-events propertyAdrien Plazas2022-06-163-0/+49
| | | | This allows showing events from the timeline via a dot.
* date-chooser: Implement GcalTimelineSubscriberAdrien Plazas2022-06-161-1/+127
| | | | | This allows the date chooser to receive events from the timeline, and will allow it to show them via a dot.
* date-chooser: Add the show-selected-week propertyAdrien Plazas2022-06-163-1/+127
| | | | If enabled, the selected week will be made visible.
* date-chooser: Use ROWS and COLS macrosAdrien Plazas2022-06-161-21/+24
| | | | This makes the code easier to read and update.
* date-chooser-day: Add .non-workday class to the current dayAdrien Plazas2022-06-161-0/+10
| | | | This will help making the non worked days let prominent.
* date-chooser-day: Add the .today style class to the current dayAdrien Plazas2022-06-162-0/+29
| | | | This will help making the current day pop out a bit.
* date-chooser-day: Automatically free the stringAdrien Plazas2022-06-161-2/+1
|
* date-chooser-day: Add the has-dot and dot-visible propertiesAdrien Plazas2022-06-164-8/+233
| | | | This allows the days to display events.
* date-chooser-day: Always have the size of two charactersAdrien Plazas2022-06-161-0/+1
| | | | This ensures the size will be consistent for all days.
* date-chooser-day: Use the numeric style classAdrien Plazas2022-06-161-0/+3
| | | | This ensures the digits are well aligned.
* date-chooser-day: Use a templateAdrien Plazas2022-06-163-17/+27
| | | | This makes the widget easier to maintain.