File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1019,6 +1019,21 @@ Spicetify.Events = (() => {
1019
1019
Spicetify . Platform . UserAPI . _product_state_service = productStateApi ;
1020
1020
} ) ( ) ;
1021
1021
1022
+ ( async function setButtonsHeight ( ) {
1023
+ while ( ! Spicetify . CosmosAsync ) {
1024
+ await new Promise ( ( res ) => setTimeout ( res , 100 ) ) ;
1025
+ }
1026
+ const expFeatures = JSON . parse ( localStorage . getItem ( "spicetify-exp-features" ) || "{}" ) ;
1027
+ const isGlobalNavbar = expFeatures ?. enableGlobalNavBar ?. value ;
1028
+
1029
+ if ( typeof isGlobalNavbar !== "undefined" && isGlobalNavbar === "control" ) {
1030
+ await Spicetify . CosmosAsync . post ( "sp://messages/v1/container/control" , {
1031
+ type : "update_titlebar" ,
1032
+ height : Spicetify . Platform . PlatformData . os_name === "windows" ? "40" : "42" ,
1033
+ } ) ;
1034
+ }
1035
+ } ) ( ) ;
1036
+
1022
1037
setInterval ( ( ) => {
1023
1038
if ( playerState . cache ?. isPaused === false ) {
1024
1039
const event = new Event ( "onprogress" ) ;
You can’t perform that action at this time.
0 commit comments