mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 11:12:49 +00:00
Fix SNI angle for top bar
This commit is contained in:
parent
42a0710551
commit
abd3774c7d
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ namespace SNI
|
||||||
Utils::SetTransform(*texture, {size, true, Alignment::Fill}, {size, true, Alignment::Fill});
|
Utils::SetTransform(*texture, {size, true, Alignment::Fill}, {size, true, Alignment::Fill});
|
||||||
texture->SetBuf(item.w, item.h, item.iconData);
|
texture->SetBuf(item.w, item.h, item.iconData);
|
||||||
texture->SetTooltip(item.tooltip);
|
texture->SetTooltip(item.tooltip);
|
||||||
texture->SetAngle(Utils::GetAngle() - 180.0);
|
texture->SetAngle(Utils::GetAngle() == 270 ? 90 : 0);
|
||||||
|
|
||||||
eventBox->AddChild(std::move(texture));
|
eventBox->AddChild(std::move(texture));
|
||||||
iconBox->AddChild(std::move(eventBox));
|
iconBox->AddChild(std::move(eventBox));
|
||||||
|
|
Loading…
Reference in a new issue