Skip to content

Commit

Permalink
refactor: format codespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ohitstom committed Feb 6, 2024
1 parent 2f2718d commit 8717687
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 25 deletions.
4 changes: 2 additions & 2 deletions catppuccin/src/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.main-gridContainer-gridContainer > div > div > div {
border-radius: 6px;
}

.main-entityHeader-backgroundColor,
.main-actionBarBackground-background,
.main-view-container
Expand Down Expand Up @@ -54,7 +54,7 @@
border: 1px solid var(--spice-overlay1);

&:hover {
border-color: var(--essential-base,#000000);
border-color: var(--essential-base, #000000);
}
}
}
15 changes: 9 additions & 6 deletions catppuccin/src/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@
div:nth-child(2) {
> li {
border-radius: 6px !important;

> div {
&:active::after {
background-color: var(--background-tinted-base,rgba(0,0,0,0.08));
background-color: var(
--background-tinted-base,
rgba(0, 0, 0, 0.08)
);
}

.x-entityImage-imageContainer {
box-shadow: none !important;
}

p {
color: var(--spice-subtext) !important;

&.TypeElement-ballad-textBrightAccent-type {
color: var(--spice-text) !important;
}
Expand All @@ -36,12 +39,12 @@
border-radius: 4px;
}

// Your collection, marketplace and lyrics app buttons
// Your collection, marketplace and lyrics app buttons
.main-navBar-navBarLink {
color: var(--spice-text);
}

// Your collection svg
// Your collection svg
.Svg-img-24-icon.collection-icon {
color: var(--spice-text);
}
Expand Down
8 changes: 4 additions & 4 deletions catppuccin/src/_now_playing.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root .Root__now-playing-bar {
// Buttons
// Buttons

.main-shuffleButton-button:focus:not(:focus-visible, :hover) {
color: var(--spice-spice-surface1);
Expand All @@ -24,15 +24,15 @@
background-color: var(--spice-sidebar);
}

// Generic control buttons
// Generic control buttons
.Button-sm-16-buttonTertiary-iconOnly-isUsingKeyboard-useBrowserDefaultFocusStyle,
.control-button,
.main-view-container button:hover > div[class^="ButtonInner-sc-"],
.main-skipForwardButton-button,
.main-skipBackButton-button {
color: var(--spice-subtext) !important;
&:hover {
color: var(--spice-text) !important
color: var(--spice-text) !important;
}
}

Expand All @@ -48,7 +48,7 @@
transform: scale(1.06);
}

// Progress bar
// Progress bar
.x-progressBar-progressBarBg > div > div {
background-color: var(--spice-text);
}
Expand Down
6 changes: 3 additions & 3 deletions catppuccin/src/_right_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
:root .Root__right-sidebar {
// New artist side bar
// New artist side bar

.Button-textSubdued-sm-16-buttonTertiary-condensed-useBrowserDefaultFocusStyle {
color: var(--spice-text) !important;
}

// The artist venue/date and next in queue name of artist
// The artist venue/date and next in queue name of artist
.artist-artistOnTour-timeAndVenue.artist-artistOnTour-condensed {
color: var(--spice-text);
}
Expand All @@ -14,7 +14,7 @@
color: var(--spice-text);
}

//Buddy Feed theming
//Buddy Feed theming
.main-buddyFeed-activityMetadata .main-buddyFeed-username a,
.main-buddyFeed-activityMetadata .main-buddyFeed-usernameAndTimestamp {
color: rgba(var(--text), 0.2);
Expand Down
20 changes: 10 additions & 10 deletions catppuccin/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"--spice-text": `var(--spice-${selectedValue})`,
"--spice-button-active": `var(--spice-${selectedValue})`,
"--spice-equalizer": document.querySelector(
"body > script.marketplaceScript",
"body > script.marketplaceScript"
)
? `url('https://github.com/catppuccin/spicetify/blob/main/catppuccin/assets/${colorScheme}/equalizer-animated-${accent}.gif?raw=true')`
: `url('${colorScheme}/equalizer-animated-${accent}.gif')`,
Expand Down Expand Up @@ -74,7 +74,7 @@
className:
"TextElement-bodyMediumBold-textBase-text encore-text-body-medium-bold",
},
"Catppuccin",
"Catppuccin"
),
Spicetify.React.createElement("div", { className: "x-settings-row" }, [
Spicetify.React.createElement(
Expand All @@ -89,9 +89,9 @@
"TextElement-bodySmall-textSubdued-text encore-text-body-small",
"data-encore-id": "type",
},
"Choose an accent color",
"Choose an accent color"
),
],
]
),
Spicetify.React.createElement(
"div",
Expand All @@ -117,15 +117,15 @@
value: option,
selected: option === selectedValue,
},
option,
option
);
}),
})
),
]),
],
]
),
]),
],
]
);
});

Expand All @@ -142,7 +142,7 @@
const sectionContainer = document.createElement("div");
Spicetify.ReactDOM.render(
Spicetify.React.createElement(Section),
sectionContainer,
sectionContainer
);
header.parentNode.insertBefore(sectionContainer, header.nextSibling);
}
Expand All @@ -152,7 +152,7 @@
// Hotload useEffect
Spicetify.ReactDOM.render(
Spicetify.React.createElement(Section),
document.createElement("div"),
document.createElement("div")
);

// Initialize + Listener
Expand Down

0 comments on commit 8717687

Please sign in to comment.