Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to hide library nav sidebar when it isn't in use #14393

Open
mxmilkiib opened this issue Feb 22, 2025 · 2 comments
Open

option to hide library nav sidebar when it isn't in use #14393

mxmilkiib opened this issue Feb 22, 2025 · 2 comments
Labels

Comments

@mxmilkiib
Copy link
Contributor

mxmilkiib commented Feb 22, 2025

Feature Description

access/show the sidebar with the same control or keyboard hotkey switch action as usual, just display it away when the user finishes navigation

Image

edit: can this be done in a skin?

@acolombier
Copy link
Member

This should already possible with a skin only change. Here is a patch for the Deere skin

diff --git a/res/skins/Deere/library.xml b/res/skins/Deere/library.xml
index 1f08cc1134..50f5459b84 100644
--- a/res/skins/Deere/library.xml
+++ b/res/skins/Deere/library.xml
@@ -28,6 +28,10 @@
             <Children>
               <WidgetGroup>
                 <Layout>vertical</Layout>
+                <Connection>
+                  <ConfigKey>[Skin],show_library_navbar</ConfigKey>
+                  <BindProperty>visible</BindProperty>
+                </Connection>
                 <Children>
                   <Template src="skin:preview_deck.xml"/>
                   <WidgetGroup>
diff --git a/res/skins/Deere/skin_settings.xml b/res/skins/Deere/skin_settings.xml
index ab9dceaab7..cbd5383c97 100644
--- a/res/skins/Deere/skin_settings.xml
+++ b/res/skins/Deere/skin_settings.xml
@@ -275,6 +275,12 @@
             <SetVariable name="skinsetting">[Skin],show_preview_decks</SetVariable>
           </Template>
 
+          <Template src="skins:Deere/skinsettings_button.xml">
+            <SetVariable name="TooltipId">show_library_navbar</SetVariable>
+            <SetVariable name="text">Library Navbar</SetVariable>
+            <SetVariable name="skinsetting">[Skin],show_library_navbar</SetVariable>
+          </Template>
+
           <Template src="skins:Deere/skinsettings_button.xml">
             <SetVariable name="TooltipId">show_coverart</SetVariable>
             <SetVariable name="text">Cover Art</SetVariable>

You should be able to bind [Skin],show_library_navbar to the keyboard or controller button you want to show or hide the navbar

@mxmilkiib
Copy link
Contributor Author

I'm meaning like, when turned on in the prefs, one would only see the track list in the lower half, then you'd hit tab and the sidebar appears/unminimises and is made the active view thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants