Commit Graph

8 Commits

Author SHA1 Message Date
natural-harmonia-gropius
ff88fabdb6 fix: translate topbar when no file (#533) 2023-04-26 15:06:19 +02:00
christoph-heinrich
6d58ef4c99 feat: apply margin to osd-margin-* (#499)
* feat: apply margin to `osd-margin-y` and `osd-margin-x`

The margins were already set for `osc-margins` and
`user-data/osc/margins`, but osd messages have their own properties
`osd-margin-x` and `osd-margin-y`.
Offsetting `osd-margin-x` and `osd-margin-y` by our margin prevents
overlap of osd messages with the GUI.
2023-04-09 08:48:15 +02:00
tomasklaen
984f8aa2c8 feat: clicking on playlist indicator in top bar now opens playlist menu
closes #480, closes #481
2023-03-29 09:44:59 +02:00
Tomas Klaen
f635df18f7 refactor: cursor events consolidated into one interface (#483)
`mbtn_left` and `wheel` events are now only fired on a `cursor.on_{event}` object, which resets at the beginning of each frame, so elements need to bind these listeners in their render functions. These properties are overwritable which allows elements to take over cursor event handling from their parents if necessary.
2023-03-29 09:08:18 +02:00
tomasklaen
2e5b0cc834 fix: title deduplication matching not escaping pattern parameter
ref #455
2023-02-18 10:58:09 +01:00
tomasklaen
0bc28c213c feat: smarter window main & alt titles deduplication
Deduplicates the main and alt titles by checking if one completely contains the other, and using only the longer one.

ref #455
2023-02-18 10:19:48 +01:00
tomasklaen
8183163f2a feat: added options to display alternative top bar title
Added option `top_bar_alt_title`, which accepts an alternative title template to be displayed, and `top_bar_alt_title_place` that controls where it should be displayed. It can be either `below` to place it below the main one, or `toggle` to show it in place of the main title when user clicks the top bar or calls the `toggle-title` binding.

The `top_bar_title` now also accepts a custom top bar title template if user wants it to be different from the one defined in `mpv.conf`.

closes #402
2023-01-18 12:06:10 +01:00
tomasklaen
4399904bba refactor: change directory structure to support mpv 0.32 and lower 2022-10-27 12:09:59 +02:00