Skip to content

Commit 1de1dde

Browse files
committed
Improve link bar looking
1 parent 5b6630c commit 1de1dde

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/gui/player_rect.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,11 @@ void PlayerRect::custom_ready() {
9494
tip_label_->set_font_size(HUD_LABEL_FONT_SIZE);
9595
add_child(tip_label_);
9696

97-
hud_container_ = std::make_shared<revector::HBoxContainer>();
98-
add_child(hud_container_);
99-
hud_container_->set_size({0, 32});
100-
revector::StyleBox box;
101-
box.bg_color =
102-
GuiInterface::Instance().dark_mode_ ? revector::ColorU(27, 27, 27, 100) : revector::ColorU(228, 228, 228, 100);
103-
box.border_width = 0;
104-
box.corner_radius = 0;
105-
hud_container_->theme_override_bg = box;
106-
hud_container_->set_anchor_flag(revector::AnchorFlag::BottomWide);
107-
hud_container_->set_visibility(false);
108-
hud_container_->set_separation(16);
109-
11097
{
11198
auto vbox_container = std::make_shared<revector::VBoxContainer>();
11299
add_child(vbox_container);
113100
vbox_container->set_separation(2);
114-
vbox_container->set_size({0, 0});
101+
vbox_container->set_size({0, 32});
115102
vbox_container->set_anchor_flag(revector::AnchorFlag::BottomWide);
116103

117104
lq_bars_.push_back(std::make_shared<SignalBar>());
@@ -126,6 +113,19 @@ void PlayerRect::custom_ready() {
126113
}
127114
}
128115

116+
hud_container_ = std::make_shared<revector::HBoxContainer>();
117+
add_child(hud_container_);
118+
hud_container_->set_size({0, 32});
119+
revector::StyleBox box;
120+
box.bg_color =
121+
GuiInterface::Instance().dark_mode_ ? revector::ColorU(27, 27, 27, 100) : revector::ColorU(228, 228, 228, 100);
122+
box.border_width = 0;
123+
box.corner_radius = 0;
124+
hud_container_->theme_override_bg = box;
125+
hud_container_->set_anchor_flag(revector::AnchorFlag::BottomWide);
126+
hud_container_->set_visibility(false);
127+
hud_container_->set_separation(16);
128+
129129
{
130130
video_info_label_ = std::make_shared<revector::Label>();
131131
hud_container_->add_child(video_info_label_);

0 commit comments

Comments
 (0)