Commit Graph

257 Commits

Author SHA1 Message Date
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
Rafał Dzięgiel
5dbcb53385 Lower the priority of showing chapter popover 2021-02-08 17:42:02 +01:00
Rafostar
65f1e8e60e Observe surface width instead of video widget 2021-02-07 21:47:25 +01:00
Rafostar
8a5702f296 Detect mobile monitor based on application-pixels 2021-02-07 21:20:14 +01:00
Rafał Dzięgiel
4debed92fe Do not restore window size if it exceeds screen size #38 2021-02-06 23:13:29 +01:00
Rafał Dzięgiel
0167f0ab4e Draw black background from CSS when GL fails
When GLArea gets a GL error it leaves user with nothing, but transparent background with error text in the middle. Make it look somewhat decent by drawing black background for the not working video widget.
2021-02-05 19:15:15 +01:00
Rafał Dzięgiel
3bcf01efb6 Merge pull request #37 from Rafostar/gstplayer
Add custom gstreamer libs as part of the app
2021-02-04 16:09:10 +01:00
Rafał Dzięgiel
3cd98befb1 Unify menus and put all headerbar buttons on the left 2021-02-04 15:47:14 +01:00
Rafał Dzięgiel
a7d99c4f81 Use "window-close" icon for playlist current playing item button
The button next to the currently playing playlist item acts as a close window button in order to allow closing app without leaving fullscreen. It should use the theme "window-close" icon to better show what it does.
2021-01-30 22:52:31 +01:00
Rafał Dzięgiel
310ef3af95 Fix not playing URIs
In case of local files the "filename" variable holds the string that is later assigned to the filename property (no difference which is used), but when playing URIs only filename property holds the string. Passing an undefined value to the label caused an error in this case and prevented playback of URIs.
2021-01-30 22:41:27 +01:00
Rafał Dzięgiel
2ce44d4e63 Combine GStreamer GTK4 plugin with API
Ship custom gtk4glsink plugin as part of API insead of normal gstreamer plugin. This avoids gstreamer plugin registry conflicts with gtk3 plugin and allows more customization.
2021-01-29 17:27:39 +01:00
Rafał Dzięgiel
4ad2b707dd Remove player config options that were changed/fixed in API 2021-01-28 19:09:53 +01:00
Rafał Dzięgiel
dea77cc39f API: notify about speed value reset on STOP 2021-01-28 17:39:52 +01:00
Rafał Dzięgiel
bee1889376 Port app to the new GstClapper API 2021-01-28 00:23:01 +01:00
Rafał Dzięgiel
acfdb7bac4 Use different icon for removing playlist items
Make it easier to see if the button will either remove the playlist item or close the app (in case of currently playing item).
2021-01-23 09:02:06 +01:00
Rafał Dzięgiel
7eb59317f9 Close app when removing active item from playlist
Make playlist remove button act the same as close button for currently playing file. This allows using it to close the app without leaving fullscreen.
2021-01-23 09:02:06 +01:00
Rafał Dzięgiel
f993a9e16c Make elapsed popover separator creation more universal 2021-01-23 09:02:06 +01:00
Rafał Dzięgiel
a82a36c6b5 Mark active playlist item with "play" icon 2021-01-23 09:02:06 +01:00
Rafał Dzięgiel
70fcc38857 Start labels from capital letter in speed control
Better match whole UI where capital letters are used.
2021-01-23 09:02:06 +01:00
Rafał Dzięgiel
d4ebb1456f Alter playlist width with box container width 2021-01-22 13:15:27 +01:00
Rafał Dzięgiel
2b77810274 Add a custom separator above speed scale
Let users know what this scale does by having a separator with a "speed" label
2021-01-22 13:13:57 +01:00
Rafał Dzięgiel
f9c8a3ce33 Do not try to dispose non-existing window 2021-01-22 11:46:50 +01:00