Limit minimal video widget size to 336x189px

This commit is contained in:
Rafał Dzięgiel
2021-02-17 12:56:02 +01:00
parent e53f35c1c9
commit 192ccb379f
2 changed files with 6 additions and 2 deletions

View File

@@ -34,6 +34,11 @@ radio {
border-radius: 0px; border-radius: 0px;
} }
.videowidget {
min-width: 336px;
min-height: 189px;
}
.tvmode popover box { .tvmode popover box {
text-shadow: none; text-shadow: none;
font-size: 21px; font-size: 21px;

View File

@@ -29,8 +29,7 @@ class ClapperPlayerBase extends GstClapper.Clapper
}); });
this.widget = gtk4plugin.video_sink.widget; this.widget = gtk4plugin.video_sink.widget;
this.widget.vexpand = true; this.widget.add_css_class('videowidget');
this.widget.hexpand = true;
this.state = GstClapper.ClapperState.STOPPED; this.state = GstClapper.ClapperState.STOPPED;
this.visualization_enabled = false; this.visualization_enabled = false;