Commit Graph
95 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto eced2151aa calendar-management/edit: Use external-link-symbolic icon
As per mockups.
2024-05-02 14:54:43 -03:00
Georges Basile Stavracas Neto 9add430c30 calendar-management/edit: Always show calendar location
As per mockups.

See https://gitlab.gnome.org/Teams/Design/app-mockups/-/issues/102
2024-05-02 14:54:43 -03:00
Jamie Gravendeel 967e8cf494 edit-calendar-page: Port remove to AdwButtonRow
Also puts the remove button in its own PreferencesGroup so that the row
can be showed separately from the rest of the list.
2024-05-01 14:06:21 +00:00
Alice Mikhaylenko eb8ee25f6a calendars-page: Port Add Calendar button to AdwButtonRow 2024-05-01 13:47:16 +00:00
Georges Basile Stavracas Neto 0228df3bc9 calendar-management/page: Remove unused vfuncs 2024-05-01 10:45:57 -03:00
Georges Basile Stavracas Neto 57ba8e2bf1 calendar-management: Rework page interface
Make GcalCalendarManagementPage require implementors to be
AdwNavigationPages
2024-05-01 10:44:16 -03:00
Aurélien Delory eaf5f55ac3 calendar-management/edit: Bind title to calendar name
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1146
2024-05-01 10:30:30 -03:00
Hari Rana 65bb78f11a edit-calendar-page: Improve location row
This changes the tooltip text display area uniquely to the
subtitle label, and excludes HTML elements and attributes
from accessibility labels.
2024-04-26 12:41:47 +00:00
Hari Rana 991ad3385b calendars-page: Remove Esc shortcut
AdwDialog already provides its own controller to close the window
with Esc.
2024-04-04 14:31:06 -04:00
Hari Rana 2a31fbab7b calendar-management-dialog: Remove content height
The dialog will automatically request a height by itself, which will benefit those who use it in fullscreen and have tons of calendars.
2024-02-23 23:03:51 -05:00
Hari Rana 704af0870d calendars-page: Remove add_calendar_row ID
This removes the leftover and unused code from https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/382.
2024-02-16 18:16:24 -05:00
Monster 00ba0df868 general: Revert removed periods 2024-02-14 14:55:36 +00:00
Monster 3733d11380 general: Correct strings to comply with GNOME HIG 2024-02-14 14:55:36 +00: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
Hari RanaandGotam Gorabh 303c5fd0fe calendar-row: Add read-only icon for read-only calendars
Co-authored-by: Gotam Gorabh <gautamy672@gmail.com>
2023-12-14 02:46:56 +00:00
Hari Rana b270176d02 calendars-page: Add AdwClamp to contrain the size 2023-12-14 00:28:21 +00:00
Hari Rana 5a1fce406b calendar-management: Set width request
The minimum width of the dialog was really low, which would make it unreadable, so a width request is being set to set a reasonable minimum width.
2023-12-14 00:20:08 +00:00
Hari Rana 033fca7900 calendar-row: Mark string as translatable 2023-12-07 15:03:14 +00:00
Hari Rana e7a61de5fc calendars-page: Add shortcuts for Add Calendar
The "Add Calendar" button lacked a mnemonic, which made it difficult for keyboard users to activate it. It also adds a Ctrl+N shortcut.
2023-12-04 19:46:10 -05:00
Hari Rana 8c53034864 a11y: Add labels for calendar pages 2023-12-04 18:40:57 +00:00
Felipe Kinoshita a6f3f130ff gcal-calendars-page: Move new calendar button to bottom toolbar
Currently, if you have lots of calendars you need to scroll all the way
to the bottom of list to have access to the "New Calendar" button.

This commit moves the "New Calendar" button to be on a bottom toolbar
provided by AdwToolbarView. It makes the button always on view and easy
to access.

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1051
2023-11-29 21:38:53 +00:00
Georges Basile Stavracas Neto e9ab7effad calendar-management/edit: Remove unnecessary binding
This is handled by the C code now.
2023-09-28 11:52:11 -03:00
Hari Rana db8127e79a calendar-row: Port to AdwActionRow
`AdwSwitchRow` doesn't allow us to add widgets before the switch as a suffix, which will be required for further use.
2023-08-07 23:15:22 +00:00
Hari Rana f210382bdc calendar-row: Port to AdwSwitchRow 2023-08-03 22:11:12 -04:00
axtloss 4079b5be0e calendar-editor/new-calendar: Fix unresponsive dialog after failed login
Adds the hide-on-close property to the dialog to stop it from becoming
unresponsive after the user tries to enter credentials multiple times.
2023-07-30 13:48:40 +00:00
Hari Rana 962646f065 calendar-row: Add go-next icon to indicate subpages 2023-07-29 07:49:44 +00:00
axtloss 779e3cd080 calendar-editor/new-calendar: Port authorization window to AdwMessageDialog
Replaces the AdwWindow authorization window with an AdwMessageDialog

Fixes #1044
2023-07-25 07:17:27 +00:00
Hari Rana 2bb1ae90e4 calendars-page: Add mnemonic for "Undo" 2023-07-23 09:58:25 -04:00
Hari Rana 540c27f72d calendars-page: Add Esc as shortcut to close window 2023-07-21 15:51:43 -04:00
Victoria Lacroix aec45594f9 gcal-utils: Combine GNOME Settings launchers
This refactor combines the functions
gcal_utils_launch_online_accounts_panel and
gcal_utils_launch_datetime_settings_panel into a single function that
takes a panel ID as an argument.
2023-07-15 23:04:51 +00:00
Hari Rana 3b818bf9dd edit-calendar: Fix visibility row 2023-06-22 09:44:20 -04:00
Georges Basile Stavracas Neto 750ab0aef8 calendar-management/calendars: Update title 2023-06-22 00:20:21 +00:00
Georges Basile Stavracas Neto cfad123629 calendar-management: Cleanup some more 2023-06-22 00:20:21 +00:00
Georges Basile Stavracas Neto 400eb12572 calendar-management/dialog: Update default sizes 2023-06-22 00:20:21 +00:00
Georges Basile Stavracas Neto 106655def2 calendar-management/calendars: Switch to toasts
It's time to move on from the old in-app notification style.

Switch to toasts.
2023-06-22 00:20:21 +00:00
Georges Basile Stavracas Neto 5e5eb75be0 calendar-management/new-calendar: Move add button to dialog
Move the add button from the headerbar into the dialog, make it
a pill button, and update the button label with the number of
calendars that will be added.
2023-06-22 00:20:21 +00:00
Georges Basile Stavracas Neto a13b4ae4f6 calendar-management/pages: Subclass AdwBin
It's simpler.
2023-06-22 00:20:21 +00:00
Georges Basile Stavracas Neto bdda09abb8 calendar-management: Port to AdwNavigationView
The interfacing that GcalCalendarManagementDialog had is somewhat
similar to AdwNavigationView, with pages and signaling basically
matching the same semantics.

We can save some code by switching to AdwNavigationView then, as
the heavy-lifting of page management is done there now.

The headerbar of the dialog is no more; instead, each page has its
own headerbar that automatically gets a back button.

Page activation and deactivation works essentially the same, but
uses AdwNavigationView signals to manage that.
2023-06-22 00:20:21 +00:00
Hari Rana 10be0ac7ef edit-calendar: Limit Calendar URL row to 1 line; use basename 2023-06-19 11:08:35 -04:00
Christopher Davis 5f82b1054e calendar-management: Port credentials dialog to AdwToolbarView and AdwWindow 2023-06-19 01:17:28 -04:00
Christopher Davis 93da9cee7d calendar-management: Use AdwToolbarView for main page 2023-06-18 22:58:55 -04:00
Hari RanaandJamie Murphy 7b1752bc19 edit-calendar: Port to libadwaita
Co-authored-by: Jamie Murphy <hello@itsjamie.dev>
2023-06-17 22:13:41 +00:00
Hari Rana ef88f27b4e calendars-page: Restrain borders of listbox
This restrains borders of the "Add Calendar…" row to its hitbox, making
it draw the borders accurately when increasing the size of the window.
2023-06-17 09:21:18 -04:00
Hari Rana 0a061fe6d1 new-calendar: Port to AdwEntryRow 2023-06-10 12:49:40 -04:00
Georges Basile Stavracas Neto ac526c5a22 calendar-management: Switch to GtkColorDialogButton 2023-03-16 12:30:15 +00:00
Georges Basile Stavracas Neto 4df39fa2ce calendar-manager/new: Switch to GtkFileDialog
Cleans up a few more compiler warnings.
2023-03-16 12:30:15 +00:00
Georges Basile Stavracas Neto 0e8332b07b calendar-management/new: Switch to a GtkDialog
The implementation of the credentials popover has relied on a hack,
and sadly this hack doesn't work anymore.

It's too late for a redesign, so for now, just put it into a dialog
and show it on top of the calendar management dialog.
2023-03-03 19:50:30 -03:00
Georges Basile Stavracas Neto 4f9d7de032 calendar-management/new: Dispose template 2023-03-03 19:50:30 -03:00
Felipe Kinoshita 2805b414f8 general: Use gtk_widget_set_visible
A lot of places were using gtk_widget_show/gtk_widget_hide, but those
methods are deprecated since Gtk 4.10.

Let's use gtk_widget_set_visible instead.
2023-03-03 19:14:09 -03:00
Georges Basile Stavracas Neto 4c9e7a2d03 manager: Bring back credentials 2022-06-23 13:50:20 -03:00