Commit Graph
47 Commits
Author SHA1 Message Date
Enzo MAROS 0e09efc43c window: Create calendar-management-dialog on demand
When the user deletes a calendar in the calendar management dialog, a
popover allows them to undo the deletion. The calendar is fully deleted
only when the toast is dismissed or when the toast reaches its timeout.
When the user closes the calendar management dialog without dismissing
the toast and before the end of the timeout, the calendar can still be
manipulated for a short period of time.

To fix this, I removed the calendar-management-dialog from the UI of the
window, and made the window create and destroy the dialog on demand.
This forces the toast overlay to dismiss all toasts.
2024-10-22 12:35:45 +00:00
Jean-François Fortin Tam a844920620 gcal-window: Set a general tooltip for the "Today" button
This static tooltip helps users discover what the feature is about.
It also helps with accessibility in general.
2024-08-23 17:14:59 -04:00
Diego Iván dfc5a9b970 drop-overlay: Introduce GcalDropOverlay
A new widget to perform drag and drop operations, for example,
dropping ICS files to the GcalWindow. It allows to overlay
a child for visual feedback when a DnD operation is done.

either in the main window or in the import dialog,
depending on whether none could be imported, or just some
of them.

It is based on Loupe's DragOverlay widget.

Closes #1257
2024-08-05 12:31:31 -03:00
Georges Basile Stavracas Neto b52b27eace event-editor: Turn into an AdwDialog 2024-01-27 12:38:35 -03:00
Georges Basile Stavracas Neto 72d3caaf94 calendar-management: Make it an AdwDialog
So it can behave like a bottom sheet when collapsed.
2024-01-27 12:32:12 -03:00
Georges Basile Stavracas Neto 7e26bd5649 views/dazzling: Make it *the* month view
And move the old one to the attic. I'll keep the files around for
a while.
2023-08-11 15:13:44 -03:00
Georges Basile Stavracas Neto a527bbe5dc views: Sketch out new month view
Nothing really works here, this is very WIP. It doesn't even show
events. Let's build from here.
2023-08-11 15:13:44 -03:00
Victoria Lacroix b35212c88c gcal-application: Ctrl+R to synchronize calendars
In !332, there was some difficulty with having two accelerators for the
"Synchronize calendars" action, so the Ctrl+R accelerator was left out.

This commit adds the Ctrl+R accelerator to gcal-window.ui by specifying
it before the F5 accelerator. The result is that only F5 is shown as an
accelerator in the overlay menu, but Ctrl+R still works.

Ctrl+R was also added to help-overlay.ui, displayed alongside F5.

Fixes #1052
2023-08-06 11:08:35 -04:00
Hari Rana c6aaf730b9 window: Add F5 shortcut for Synchronize Calendars 2023-08-04 19:05:15 -04:00
Hari Rana cccd2d7118 window: Add shortcut for Manage Calendars 2023-07-21 18:46:23 +00:00
Victoria Lacroix 3526cadcca gcal-window: datetime settings shortcut
Shortcut is added so that time-related system settings can be easily
accessed. See #1023

The code is largely just a copy-paste of the code that opens the
"Online Accounts…" menu.

Fixes #1023
2023-07-15 23:04:51 +00:00
Christopher Davis 832b9132a2 window, calendar-button: Make text buttons shrinkable
Lets buttons shrink to fit the size they're given. This
is important for text buttons so they don't cause our
content to overflow our window.
2023-06-17 20:18:07 +00:00
Christopher Davis 34bf2f8e50 window: Use AdwNavigationSplitView and AdwBreakpoint
Replaces our leaflet with the new AdwNavigationSplitView
widget and AdwBreakpoint.
2023-06-17 20:18:07 +00:00
Christopher Davis 5b528032db window, toolbar-end: ToolbarEnd Fixes
* Use the sidebar's search entry for search shortcut when folded
* Set context on the sidebar's search entry
* Drop context GtkExpression from gcal-toolbar-end.ui
2023-06-17 20:18:07 +00:00
Georges Basile Stavracas Neto 3c672e0784 Move sync indicator into a separate widget
And move the new widget into the headerbar itself, instead of
the calendars button.
2023-05-23 19:01:19 -03:00
Georges Basile Stavracas Neto b5c9d5b73f window: Use AdwToolbarView to look prettier
We're fashion now.
2023-05-23 17:01:54 -03:00
Georges Basile Stavracas Neto d6a216d0fa gui: Propagate context to GcalSearchButton
The people who introduced this code were not careful enough to
make sure the code they removed from GcalWindow was added back
in GcalToolbarEnd.

They also simply commented out some code instead of properly
reimplementing that.

I regret having trusted their code :(

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/880
2023-03-05 11:41:35 -03:00
Automeris naranja 88c696dbad window: Allow opening Main Menu by pressing F10 2023-02-13 13:25:32 -03:00
Sabri Ünal 066995d512 gui: Add a tooltip for "Main Menu" icon 2023-01-05 11:44:15 +00:00
Henrique F. Simões e6b3e72e7c window: Add mnemonics to today, week and month labels
Users should be able to navigate through the interface ideally using
only the keyboard, as specified in the GNOME Human Interface Guidelines.
This however is currently possible in the window page with shortcuts
when it comes to switching among week and month views, and jumping to
today's date. It is also interesting to have access keys attached to
such labels, so that the user does not need to look for the keyboard
shortcuts.

Using the first letter for each of the labels as mnemonics suffices in
this case, since there is no conflict, none of them is a thin letter nor
has descenders, and they are easy to remember.
2022-11-20 19:54:52 +00:00
Georges Basile Stavracas Neto cc696bc365 window: Properly hide start headerbar buttons
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/859
2022-10-17 23:37:13 -03:00
Christopher Davis a53787457e window: Use two today buttons instead of moving
This fixes an issue that caused flickering as the window
approached a size where it could fold.
2022-08-12 03:00:08 +00:00
Christopher Davis 9444d998ff general: Use GcalToolbarEnd for toolbars
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.
2022-08-12 03:00:08 +00:00
Christopher Davis 78d9dd1e8e window: Move action widgets at small widths
Moves the action widgets (Today, New Event, Search) to an
action bar when the window shrinks.
2022-08-12 03:00:08 +00:00
Christopher Davis 4cc727f48d window: Use AdwLeaflet for foldable window
Allows the window to shrink to a smaller width via AdwLeaflet.
2022-08-12 03:00:08 +00:00
Adrien Plazas e24f1812d6 window: Fix the indentation
It was purposefully left broken in the previous commits to help
reviewing the actual changes.
2022-06-16 08:34:27 -03:00
Adrien Plazas e611580ef3 window: Reorganize buttons
This matches the new design.
2022-06-16 08:34:27 -03:00
Adrien Plazas 54a8445abb window: Drop the back and forward buttons
They aren't needed anymore as we have a date chooser, and they are
absent from the new design.
2022-06-16 08:34:27 -03:00
Adrien Plazas a3f21be8b4 window: Add a sidebar with a date chooser and an agenda
This starts implementing the sidebar of the new design.
2022-06-16 08:34:27 -03:00
Adrien Plazas 3c37304e54 window: Move the toast overlay at the root of the window
This is needed to add a sidebar.
2022-06-16 08:34:27 -03:00
Adrien Plazas 0a455d6fdf Drop the year view shortcut
It was accidentally left over when dropping the year view.
2022-05-16 10:25:33 +02:00
Adrien Plazas 7764cb7278 window: Drop the year view
We don't need it anymore since we have the date chooser, and it's absent
from the new design.
2022-05-06 20:28:48 +02:00
Christopher Davis 844fa595fd window: Use AdwButtonContent for Today button
Text buttons in headerbars should come with an icon,
or an arrow if they're a dropdown. For this, we
have AdwButtonContent.

This commit makes use of AdwButtonContent for
the Today button, adding an icon and allowing
for the button to be flat in the headerbar.
2022-02-21 16:03:17 +00:00
Christopher Davis 83719270a4 window: Change button order, remove linked
* We shouldn't use `.linked` for header/toolbar buttons,
per https://blogs.gnome.org/alexm/2021/09/10/cleaning-up-header-bars/
* In other apps, back/forward buttons are at the very
beginning of the headerbar.
2022-02-21 16:03:17 +00:00
Björn Daase 9219d1844b window: Unify shortcuts definition to use "Control" 2022-02-12 22:43:08 +01:00
Björn Daase 5c8fec5008 window: Use Alt instead of Ctrl
This seems to be the more preferred modifier for selecting views
within an application (e.g., Chrome, Firefox, Geary, Nautilus).
2022-02-12 22:43:06 +01:00
Georges Basile Stavracas Neto 552fd413ae window: Properly declare shortcuts
I messed up shortcut declaration, but this should be enough
to get them working again.
2022-02-12 18:13:30 -03:00
Georges Basile Stavracas Neto ad0a97d6ac Rework calendar popover to be a button
This allows more precise control of the style and the contents
of the popover.
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto 2b834b27ff calendar-management-dialog: Port to GTK4
Subclass AdwWindow. Adjust the API to return GtkHeaderBar
instead of HdyHeaderBar.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto e3196644bb window: Port to GTK4
Subclass AdwApplicationWindow.
2022-02-11 09:18:38 -03:00
Rajat Jain 19ee70f9ab window: Add missing keyboard shortcut
Add missing accelerator for <Alt>+Down as it was
mentioned in shortcuts dialog but not implemented.

Fixes #492

Signed-off-by: Rajat Jain <rajatjain.ix@gmail.com>
2021-05-11 19:11:31 +00:00
Christopher Davis 709cfb75fa gui: Use HdyViewSwitcher
For GNOME 40 apps should migrate to use HdyViewSwitcher.
For now, this does not mean full adaptivity.
2021-02-14 16:34:13 +00:00
Georges Basile Stavracas Neto 7e10c6d451 event-editor-dialog: Stop using response type
Using dialog responses to communicate intent to GcalWindow was always
a hack, and as the code is cleaned, it's getting increasingly annoying.

Replace this with a proper 'remove-event' signal ('delete-event' would
conflict with the equally named GTK signal), remove the custom response
types, and cleanup the code.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto b4029b0c23 edit-dialog: Rename to GcalEventEditorDialog 2020-10-31 13:30:56 -03:00
Evangelos Ribeiro Tzaras ac46671334 window: Switch to HdyHeaderBar
Change the headerbar to HdyHeaderBar
2020-09-16 15:24:46 +00:00
Evangelos Ribeiro Tzaras 402ad34f42 window: Inherit from HdyApplicationWindow
This commit makes the toplevel GcalWindow inherit from
HdyApplicationWindow instead of GtkApplicationWindow.
2020-09-16 15:24:46 +00:00
Georges Basile Stavracas Neto b772349c3f Move UI files to src/
Keep it in sync with what To Do and Settings do.
2019-12-02 16:41:56 -03:00