Commit graph

19 commits

Author SHA1 Message Date
Michael Gratton
4eefe3013e client: Fix packing of Component.ConversationActions 2021-04-13 18:38:19 +10:00
Michael Gratton
0aa8ad6a05 client: Convert from shared conversation action widget to use multiple
Convert Components.ConversationActions to a widget that encapsulates
selectively visible conversations action groups. Use multiple instances
of that in preference to a single shared instance that gets re-parented
as the responsive UI adjusts.

Flatten the custom widget hierarchy a bit by merging the
`ConversationActionBar` and `ConversationHeaderbar` widgets into
`MainToolbar` itself.
2021-04-11 11:23:13 +10:00
Julian Sparber
dc6fb34422 main-window: replace GtkApplicationWindow with HdyApplicaitonWindow
HdyApplicationWindow moves the titlebar into the content area of the
window which allows us to split the current main-titlebar and move the
parts directly into the leaflets without the need of swipe groups nor
size groups.
2021-02-03 17:06:45 +01:00
Michael Gratton
f4d3c54110 ui: Remove can_focus from GTK builder file definitions
GTK widgets set the default for this as needed, and some incorrect
values for this have caused issues with keyboard focus.

Fixes #1059
2021-01-27 21:43:23 +11:00
Michael Gratton
1ad29a9be9 Merge branch 'sidebar-improvments' into 'mainline'
Modernize folder list (without rewrite)

Closes #880 and #1029

See merge request GNOME/geary!618
2021-01-07 22:29:05 +00:00
Julian Sparber
8aa5f291e8 folder-list: mordernize sidebar
This makes each row a better click target and improves spacing in
general. This move the expander arrow to the left and removes the
indentation for folders which makes it possible to define a much
smaller width for the sidebar.

Fixes: https://gitlab.gnome.org/GNOME/geary/-/issues/880,
       https://gitlab.gnome.org/GNOME/geary/-/issues/1029
2020-12-09 11:08:33 +01:00
Julian Sparber
9c6ca541cc conversation-viewer: move actions to the bottom when they don't fit 2020-11-18 14:59:43 +01:00
Julian Sparber
0923de098f main-window: remove shadow from folder/conversation list 2020-11-17 11:35:52 +01:00
Julian Sparber
98017cfb39 main-toolbar: Create object containing conversation actions
This creates a new object that contain the 4 groups of actions that used
to be in the conversation-viewer headerbar.
This allows the widgets to be moved to differen locations, e.g. to an
action bar that will be added in a later commit.
2020-10-12 11:03:04 +02:00
Julian Sparber
d6c546e2d5 composer: close the composer when navigating back 2020-10-10 10:41:49 +02:00
Adrien Plazas
28e3192674 application-main-window: Sync the leaflets' swipe state
This keeps the swiping state of the leaflets in sync.
2020-10-10 10:41:49 +02:00
Adrien Plazas
12a7101ba5 Use leaflets in the UI
There is no way to navigate into the app, but it's a start.

v2: replace expand with child vexpand
2020-10-10 10:41:49 +02:00
Adrien Plazas
edfb1a2cf3 application-main-window: Sync the pane size request
Bind each pane's elements minimum size requests via size groups.
2020-10-10 10:41:49 +02:00
Adrien Plazas
850efb7238 application-main-window: Move the conversations searchbar
Move it at above the conversations but not above the folders. This is
needed to properly split the 3 panes.
2020-10-10 10:41:49 +02:00
Michael Gratton
8d219b9f88 Application.MainWindow: Clean up builder and CSS class names
Make it clear which widgets are releated to the conversation list,
add some additional CSS to allow more fine-grained CSS rule targetting.
2020-03-30 21:05:00 +11:00
Michael Gratton
0e7d30f8cb Plugins.FolderContext: Add support for showing folder info bars
Add Plugin.InfoBar to allow plugins to describe an info bar, add
methods to FolderContext to allow adding and removing them when
folders are displayed and implement them. Add a InfoBarStack to the
MainWindow for displaying folder info bars.
2020-03-20 17:41:57 +11:00
Michael Gratton
058a314e40 Application.MainWindow: Construct infobars programatically
Construct infobars programatically so they can derive from
Components.Infobar and don't need to be initially part of the widget
hierarchy.
2020-03-20 17:08:46 +11:00
Michael Gratton
259ebe50fd Re-implement single key shortcuts as a preference
Add new `single-key-shortcuts` GSetting, Application.Configuration
property and add UI for it in the Preferences window. When enabled,
load in new `single-key-shortcuts.css` file that has the appropriate
bindings. Update bindings to match Google's current set, and update
shortcut help to match.
2019-11-21 02:36:09 +11:00
Michael Gratton
239fdce562 Move MainWindow to Application package
Move MainWindow out of the root namespace and add it to Application,
so it can privately share internal state with the Controller. Rename
the source and UI files to match.
2019-11-17 21:38:33 +11:00
Renamed from ui/main-window.ui (Browse further)