Revamp UI a whole lot
This commit is contained in:
@@ -51,6 +51,7 @@ namespace KernelPanic.UI
|
||||
_emptyHintLabel = root.Q<Label>("FeaturedUnitEmptyHint");
|
||||
_populatedState = root.Q<VisualElement>("FeaturedUnitPopulatedState");
|
||||
_emptyState = root.Q<VisualElement>("FeaturedUnitEmptyState");
|
||||
_panel.tooltip = string.Empty;
|
||||
|
||||
DistroArtPresenter.ConfigureArtLabel(_asciiLabel, _monospaceFont);
|
||||
_asciiFitter = new AsciiArtFitter(_asciiLabel, _monospaceFont);
|
||||
@@ -141,7 +142,6 @@ namespace KernelPanic.UI
|
||||
_emptyState.AddToClassList("hidden");
|
||||
_currentUnit = unit;
|
||||
TerminalTheme.SetDistro(_panel, unit);
|
||||
_panel.tooltip = "[F2] next distro / [Enter] inspect";
|
||||
|
||||
_titleLabel.text = "[ neofetch ]";
|
||||
_asciiFitter.SetArt(DistroArtPresenter.Render(_asciiLabel, _asciiPlaceholder, unit));
|
||||
|
||||
Reference in New Issue
Block a user