From 192ccb379ff0bb3a033914f0feb1460d5ea46a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 17 Feb 2021 12:56:02 +0100 Subject: [PATCH] Limit minimal video widget size to 336x189px --- css/styles.css | 5 +++++ src/playerBase.js | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/css/styles.css b/css/styles.css index a30b9362..b31945e5 100644 --- a/css/styles.css +++ b/css/styles.css @@ -34,6 +34,11 @@ radio { border-radius: 0px; } +.videowidget { + min-width: 336px; + min-height: 189px; +} + .tvmode popover box { text-shadow: none; font-size: 21px; diff --git a/src/playerBase.js b/src/playerBase.js index 5939101e..6dc643ac 100644 --- a/src/playerBase.js +++ b/src/playerBase.js @@ -29,8 +29,7 @@ class ClapperPlayerBase extends GstClapper.Clapper }); this.widget = gtk4plugin.video_sink.widget; - this.widget.vexpand = true; - this.widget.hexpand = true; + this.widget.add_css_class('videowidget'); this.state = GstClapper.ClapperState.STOPPED; this.visualization_enabled = false;