Rafał Dzięgiel
8407a325af
Increase delay of hiding controls when fullscreen
2021-02-22 11:29:26 +01:00
Rafał Dzięgiel
5e66a2bb5a
Wait for top revealer transition to finish before changing it
...
Changing transition in middle can have dire consequences, so change only when not in transition.
2021-02-22 11:27:20 +01:00
Rafał Dzięgiel
61ae543cf9
Separate top revealer title and time
2021-02-22 10:22:05 +01:00
Rafostar
8b254de151
Modern fullscreen UI
2021-02-22 10:22:05 +01:00
Rafostar
edde84f0fc
Performance: reduce amount of top shadow offscreen rendering
2021-02-22 10:22:05 +01:00
Rafostar
46103e169f
Update current time on top overlay reveal
...
Previously current hour might not have been updated if someone entered fullscreen without moving mouse cursor or with a touch
2021-02-20 11:12:50 +01:00
Rafał Dzięgiel
86356d5b1b
Make linked buttons icons closer to each other
2021-02-19 20:56:58 +01:00
Rafał Dzięgiel
67ad7d8bd4
Add separator to linked buttons
2021-02-19 20:26:59 +01:00
Rafał Dzięgiel
59908f808f
Show menu and close buttons on mobile fullscreen view
2021-02-19 13:13:25 +01:00
Rafał Dzięgiel
ef06be464c
Use basic GtkBox widget for headerbar replacement
...
Window headerbar is hidden at all times. We do not want to execute the logic that comes with GtkHeaderBar, so we simplify it by using GtkBox as a dummy widget.
2021-02-19 12:11:19 +01:00
Rafał Dzięgiel
12b38702ab
Prevent hiding OSD when menu popover is open
2021-02-19 11:49:25 +01:00
Rafał Dzięgiel
dbfd97d11a
Do not block closing OSD when popover opened in windowed mode
2021-02-19 10:52:11 +01:00
Rafał Dzięgiel
6400d251c2
Add a special style class for menu popover button
...
We want to have a non-osd popover in the button that is placed on OSD headerbar. This is something unusual that Adwaita does not have, so create a custom style that will use common values from user system theme.
2021-02-19 10:12:47 +01:00
Rafał Dzięgiel
e7b446ca9f
Extend Gtk.ToggleButton for Popover buttons
...
Instead of trying to force active state for a normal button that is not designed to be toggle-able, use GTK toggle buttons.
2021-02-19 10:10:09 +01:00
Rafał Dzięgiel
7680b85ea9
Reveal controls only with touch or pen
2021-02-18 19:02:34 +01:00
Rafał Dzięgiel
834a690903
Tweak overlay revealers show/hide logic
2021-02-18 17:13:38 +01:00
Rafał Dzięgiel
12591e106f
Move event controllers to widget and add them to top revealer
2021-02-17 16:31:37 +01:00
Rafał Dzięgiel
192ccb379f
Limit minimal video widget size to 336x189px
2021-02-17 12:56:02 +01:00
Rafał Dzięgiel
e53f35c1c9
Bind revealers visibility instead of using a timeout
2021-02-17 12:28:49 +01:00
Rafał Dzięgiel
b012ac4c8f
Fix typos
2021-02-17 12:28:49 +01:00
Rafał Dzięgiel
e79ce58b26
Rename "fullscreenMode" boolean to "isFullscreenMode"
2021-02-17 12:28:45 +01:00
Rafał Dzięgiel
887f189b60
Save window size only when windowed and not in floating mode
2021-02-17 12:20:44 +01:00
Rafał Dzięgiel
c908305be0
Update window title with video title
...
Clapper no longer has a title bar to show the media title during playback. Update window title so the video title is also shown on "Activities" view in addition to fullscreen top overlay.
2021-02-16 15:35:10 +01:00
Rafał Dzięgiel
435264cbec
Start DBus proxy asynchronously
2021-02-16 15:35:10 +01:00
Rafał Dzięgiel
2347ff52bf
Add option to show floating video on all workspaces
...
Option to stick the floating mode window to all workspaces. Disabled by default. Can be enabled in player preferences.
2021-02-16 15:33:57 +01:00
Rafał Dzięgiel
530f60bce9
Replace GTK headerbar with custom implementation
...
This avoids D&D controllers clash and allows to freely customize how maximize, minimize and close buttons work (differently for e.g. web application) and where are they placed
2021-02-16 15:23:58 +01:00
Rafał Dzięgiel
6448012edd
Auto set floating mode window to be always above
2021-02-14 21:35:16 +01:00
Rafał Dzięgiel
baa5053446
Reset hide controls timer when clicking corresponding button
2021-02-14 14:16:59 +01:00
Rafał Dzięgiel
91703cf7cf
Hide both cursor and overlays with a single timer
...
Simplify hide controls logic code by using single timer to hide both cursor and video overlays at once
2021-02-14 14:07:38 +01:00
Rafał Dzięgiel
8064bab6a2
Remove old floating mode leftovers
...
Clapper has now much simpler floating mode. This overcomplicated code is not needed anymore.
2021-02-13 20:19:08 +01:00
Rafał Dzięgiel
892e8b55f3
Change floating mode icon
...
Floating mode now works entirely different then before (only controls gets hidden/revealed with animation). Change the used icon to better match this new behaviour.
2021-02-13 18:57:30 +01:00
Rafał Dzięgiel
662517163b
Reduce amount of logic in controls unreveal tick
2021-02-13 18:20:17 +01:00
Rafał Dzięgiel
1d16d3e2ac
Add OSD headerbar and transition to floating mode
2021-02-13 17:19:03 +01:00
Rafał Dzięgiel
bb8ae47a66
Enforce rounded corners only on Adwaita theme
...
Adwaita does not have rounded corners yet, but will have soon. Enforce rounded corners in the app only for Adwaita to avoid bumping min required GTK version.
2021-02-12 12:19:43 +01:00
Rafał Dzięgiel
46e8bef7b8
Use separate CSS class for TV mode
2021-02-12 11:49:34 +01:00
Rafał Dzięgiel
a597de5481
Swipe when fullscreen to seek or adjust volume
2021-02-10 23:11:46 +01:00
Rafał Dzięgiel
821c7f6537
Make hitting "Enter" resume playback position when asked
2021-02-10 12:31:29 +01:00
Rafał Dzięgiel
57a480389f
Show GJS version in about dialog
2021-02-10 12:24:10 +01:00
Rafał Dzięgiel
3b7beac075
Major theme changes were done in GTK 4.0.2, not GTK 4.1
2021-02-09 20:49:07 +01:00
Rafał Dzięgiel
894384483b
Merge pull request #41 from Rafostar/pinephone
...
Fix mobile devices transitions and detection
2021-02-09 18:52:28 +01:00
Rafał Dzięgiel
1ee0db1cbc
Also do not save resume info for very long titles (random URIs)
2021-02-09 17:19:42 +01:00
Rafał Dzięgiel
ddbf4d40e6
Merge pull request #40 from Rafostar/resume-playback
...
Resume playback
2021-02-09 12:49:32 +01:00
Rafał Dzięgiel
23ef3bb85f
Optimize sliders for GTK 4.1
2021-02-09 12:40:11 +01:00
Rafał Dzięgiel
d1f32955b8
Do not save resume info under certain conditions
...
Do not save when video is short, just started or almost finished
2021-02-08 22:16:49 +01:00
Rafał Dzięgiel
17f73bb222
Add resume last unfinished video setting to prefs
2021-02-08 21:53:22 +01:00
Rafał Dzięgiel
d952f37b0e
Prevent saving unfinished video info when autoclosing
2021-02-08 21:30:52 +01:00
Rafał Dzięgiel
dfbb8b8d70
Ask to resume last unfinished video
2021-02-08 21:16:28 +01:00
Rafał Dzięgiel
15eeea2872
Save resume info of last unfinished video
2021-02-08 21:16:13 +01:00
Rafał Dzięgiel
84232f3c12
Prepare resume playback dialog
2021-02-08 19:22:27 +01:00
Rafał Dzięgiel
c2808e7d9a
Update position slider right after seek is done
2021-02-08 18:50:29 +01:00