Skip to content

Commit

Permalink
Merge pull request #557 from lwnoble/main
Browse files Browse the repository at this point in the history
Themes implements and code clean up
  • Loading branch information
lwnoble authored Sep 18, 2023
2 parents 407a824 + 1569b1e commit 6a62d42
Show file tree
Hide file tree
Showing 302 changed files with 6,764 additions and 6,830 deletions.
9 changes: 5 additions & 4 deletions code/src/ui/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

body {
color: var(--on-background);
font-family: var(--bodyFamily);
font-weight: var(--fontWeight-2);
font-size: calc(var(--zoom) * var(--baseFont));
line-height: calc(var(--zoom) * var(--standard-LineHeight));
font-family: var(--body1FontFamily);
font-weight: var(--body1FontWeight);
font-size: calc(var(--zoom) * var(--body1FontSize));
line-height: calc(var(--zoom) * var(--body1LineHeight));
letter-spacing: var(--body1LetterSpacing)
}

p {
Expand Down
3 changes: 2 additions & 1 deletion code/src/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ interface Props {
user: any;
}


const App: React.FC<Props> = ({user}) => {

const [themeName, setThemeName] = useState<string>("light");
Expand Down Expand Up @@ -85,7 +86,7 @@ const App: React.FC<Props> = ({user}) => {
{ /* </ThemeProvider> */ }
</BrowserRouter>
);

}

export default App;
9 changes: 0 additions & 9 deletions code/src/ui/src/components/ColorShade.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ li .Hex {
margin: 8px auto !important;
}


.caption {
font-family: var(--primaryFont);
font-weight: var(--fontWeight-3);
font-size: calc(var(--baseFont) * .75);
line-height: var(--standard-LineHeight);
letter-spacing: 0.5%;
}

.text-center {
text-align: center!important;
}
Expand Down
21 changes: 5 additions & 16 deletions code/src/ui/src/components/DesignSystemTitleBar.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
.titleBarDiv {
width: 100%;
background: var(--primary);
color: var(--on-primary);
display: flex;
align-items: center;
justify-content: space-between;
background: var(--background);
color: var(--on-background);
}

.titleBarDiv .MuiSelect-select {
margin: auto;
padding-left: 20px;
padding-right: 20px;
color: var(--on-surface);
}

.titleBarDiv .MuiSelect-icon {
fill: var(--on-surface);
}

.titleBarDiv .MuiOutlinedInput-notchedOutline {
border: 1px solid var(--on-primary);
opacity: 0.5;
background: var(--surface);
border-radius: var(--spacing-half);
padding: 0 var(--spacing-1);
font-size: var(--body1FontSize);
font-weight: var(--body1FontWeight);
.MuiSelect-select span {
padding-right: var(--min-target)
}

.titleBarDiv .left-titlebar {
Expand Down Expand Up @@ -63,7 +52,7 @@
.titleBarDiv .label {
padding-right: 30px;
font-size: var(--label-smallFontSize);
font-family: var(--bodyFamily);
font-family: var(--label-smallFontFamily);
font-weight: var(--label-smallFontWeight);
line-height: var(--label-smallLineHeight);
letter-spacing: var(--label-smallCharcterSpacing);
Expand Down
52 changes: 26 additions & 26 deletions code/src/ui/src/components/DesignSystemTitleBar.tsx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions code/src/ui/src/components/DisplayColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ export const DisplayColorPalette: React.FC<Props> = ({ colorPalette, colors, lig
</DarkModeSection>
</div>
)
}
}
else {
return (
<div className="row">
Add a color in the Settings section to add colors to palette.
</div>
)
}
}
}
50 changes: 25 additions & 25 deletions code/src/ui/src/components/WelcomeNavbar.tsx

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions code/src/ui/src/components/modals/Modals.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,3 @@
margin-right: auto;
display: block;
}

/*
.modal-footer button {
display: flex;
align-items: center;
justify-content: center;
background: var(--on-button);
color: var(--on-background);
border-radius: var(--button-radius);
text-align: center;
padding: var(--spacing-1) var(--button-padding);
border: none;
position: relative;
align-self: start;
font: var(--button-font);
letter-spacing: var(--button-character-spacing);
text-transform: var(--button-transform) !important;
cursor: pointer;
}
*/
Loading

0 comments on commit 6a62d42

Please sign in to comment.