4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 10:34:29 +08:00

Add leva theme (#245)

* Add leva theme

* Fix linting
This commit is contained in:
Matthew Tancik 2022-08-02 15:49:21 -07:00 committed by GitHub
parent 3e0654b435
commit dfe13334e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 0 deletions

View File

@ -1,8 +1,10 @@
import './App.css';
import React from 'react';
import { Leva } from 'leva';
import { RenderControls } from './modules/ConfigPanel/ConfigPanel';
import LevaTheme from './modules/ConfigPanel/leva_theme.json';
import SetupScene from './modules/Scene/Scene';
import ViewerWindow from './modules/ViewerWindow/ViewerWindow';
@ -11,6 +13,7 @@ export default function App() {
return (
<div className="App">
<Leva theme={LevaTheme} titleBar={false} />
<RenderControls />
<ViewerWindow scene={scene} />
</div>

View File

@ -0,0 +1,56 @@
{
"colors": {
"elevation1": "#292d39",
"elevation2": "#181c20",
"elevation3": "#373c4b",
"accent1": "#db5200",
"accent2": "#ff8600",
"accent3": "#ffd65c",
"highlight1": "#606980",
"highlight2": "#d1d4db",
"highlight3": "#ffffff",
"vivid1": "#ffcc00"
},
"radii": {
"xs": "2px",
"sm": "4px",
"lg": "10px"
},
"space": {
"sm": "6px",
"md": "5px",
"rowGap": "6px",
"colGap": "7px"
},
"fontSizes": {
"root": "11px"
},
"sizes": {
"rootWidth": "310px",
"controlWidth": "170px",
"scrubberWidth": "8px",
"scrubberHeight": "16px",
"rowHeight": "24px",
"folderHeight": "20px",
"checkboxSize": "16px",
"joystickWidth": "100px",
"joystickHeight": "100px",
"colorPickerWidth": "160px",
"colorPickerHeight": "100px",
"monitorHeight": "60px",
"titleBarHeight": "39px"
},
"borderWidths": {
"root": "0px",
"input": "1px",
"focus": "1px",
"hover": "1px",
"active": "1px",
"folder": "1px"
},
"fontWeights": {
"label": "normal",
"folder": "normal",
"button": "normal"
}
}