Commit Graph

77 Commits

Author SHA1 Message Date
Rafostar
d04297620b Apply controls offset for Adwaita icons only
Only some icons from Adwaita get size modifications. Others themes do not need this, so they should not have an offset applied.
2021-03-31 21:38:44 +02:00
Rafał Dzięgiel
96e5c5aa7c Restore 5px button margins for TV mode
They were reduced too much recently, causing chapter marks to not fit properly onto the controls bar
2021-03-31 09:04:29 +02:00
Rafał Dzięgiel
66ce006f00 Move buttons margins to CSS and tweak them a little 2021-03-30 22:15:12 +02:00
Rafał Dzięgiel
4a60e01131 Auto set brighter sliders on Adwaita dark only 2021-03-24 21:16:41 +01:00
Rafał Dzięgiel
b404eb2f56 Increase play/pause icon size only on Adwaita theme
Adwaita theme has unusually small media constrols icons, but other popular themes do not. Instead increasing those icons on every theme do it only for Adwaita where problem occurs.
2021-03-24 20:36:08 +01:00
Rafał Dzięgiel
1f18796e0d Make buttons separator black on all themes
Using default @borders value causes it to be white even when all OSD buttons are half transparent black.
2021-03-24 20:04:09 +01:00
Rafał Dzięgiel
6b4521c49a Make video chapter popover easier to read when fullscreen 2021-02-25 09:27:07 +01:00
Rafał Dzięgiel
ddc4030a30 Decrease min allowed video window size
Make sure the app can fit every mobile device by decreasing min window size to 320x180 application-pixels (16:9 aspect).
2021-02-23 12:52:45 +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
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
35d1179905 Make OSD position scale height a little bigger on mobile 2021-02-19 13:00:13 +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
192ccb379f Limit minimal video widget size to 336x189px 2021-02-17 12:56:02 +01:00
Rafał Dzięgiel
b012ac4c8f Fix typos 2021-02-17 12:28:49 +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
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
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
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
d5ab23d5c1 Reduce rounded corners radius 2021-02-09 12:45:22 +01:00
Rafał Dzięgiel
23ef3bb85f Optimize sliders for GTK 4.1 2021-02-09 12:40:11 +01:00
Rafał Dzięgiel
b472c23bf5 Fix volume scale border not turning red when overamp 2021-02-08 22:29:00 +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
30cc8732de Style only speed separator 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
8d33766725 Stretch fullscreen speed scale
Make it easier to set it precisely in fullscreen where everything is bigger.
2021-01-22 12:06:56 +01:00
Rafał Dzięgiel
20f03423f3 Make speed scale look consistent with volume scale on fullscreen 2021-01-22 11:45:43 +01:00
Rafał Dzięgiel
d8c6c61f1b Disable shadows for playlist icons in fullscreen 2021-01-22 11:20:34 +01:00
Rafostar
3ba21d42ec Add playlist widget to elapsed time button popover 2021-01-19 16:41:49 +01:00
Rafostar
df4678d930 Show chapter in popover when dragging position scale 2021-01-13 17:55:22 +01:00
Rafostar
83bec8e834 Mark video chapters on progress bar 2021-01-12 18:26:28 +01:00
Rafostar
64a31718c0 Do not set progress bar top margin in floating mode 2021-01-10 22:09:13 +01:00
Rafostar
cff65a989d Revert "Remove unnecessary position scale margin"
This reverts commit 1c82b2288a.

The margin turns out to be necessary for uneven scaling on
some displays resolutions.
2021-01-08 21:45:37 +01:00
Rafostar
1c82b2288a Remove unnecessary position scale margin 2020-12-14 23:14:16 +01:00
Rafostar
67389ee295 Fix for negative sizes and separate popovers override 2020-12-14 12:10:02 +01:00
Rafostar
ef12074559 Tweak fullscreen GUI theme
Notable changes:
* Smaller media title font (fits more characters on screen)
* Constant top timer numbers size (time no longer moves left/right when hour changes)
* Reduced top shadow overlay height
* Smaller buttons on bottom controls panel (their icon size remains the same)
* Reduced bottom panel and progress bar height
* Few additional margins and font sizes tweaks
2020-12-14 11:30:19 +01:00
Rafostar
6ea210ff12 Minor prefs theme improvements 2020-12-08 17:08:55 +01:00
Rafostar
64bf1dc172 Apply rotate animation to the icon, not whole button 2020-12-04 09:55:26 +01:00
Rafostar
a2ee14e74f Set revealer animation fill mode to "forwards" 2020-12-03 16:53:22 +01:00
Rafostar
333b9d8224 Mobile friendly interface transitions #14 2020-12-02 10:59:02 +01:00
Rafostar
4cb743b931 Performance: do not draw header bar bottom border
It is not even noticable and reduces performance by having more pixels to redraw every frame.
2020-12-02 10:56:19 +01:00
Rafostar
def5bc5d96 Change volume scale color when over-amplified 2020-12-01 09:43:36 +01:00
Rafostar
66162349ac Use dark theme by default. Closes #13 2020-11-21 15:56:03 +01:00
Rafostar
f5e5071937 Support setting sliders brighter #13
When dark theme is used, sliders (especially progress on fullscreen) tend to look a little too dark (as if they were disabled). To overcome this, add an option to force them to be 20% brighter.
2020-11-21 15:20:09 +01:00
Rafostar
910a289b6d Let floating window have shadow if shadows are enabled
If normal window would have shadow and floting did not, then a size mismatch would occur during transition. Besides it allows to notice if floating window is focused and respects user theme.
2020-11-13 23:00:06 +01:00