Move projectDiagnostics to it's own file and remove unused code
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
772f4579fc
commit
6fc68a8ddd
3 changed files with 17 additions and 13 deletions
|
@ -321,7 +321,6 @@ pub struct ProjectDiagnostics {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub container: ContainerStyle,
|
pub container: ContainerStyle,
|
||||||
pub empty_message: TextStyle,
|
pub empty_message: TextStyle,
|
||||||
pub status_bar_item: ContainedText,
|
|
||||||
pub tab_icon_width: f32,
|
pub tab_icon_width: f32,
|
||||||
pub tab_icon_spacing: f32,
|
pub tab_icon_spacing: f32,
|
||||||
pub tab_summary_spacing: f32,
|
pub tab_summary_spacing: f32,
|
||||||
|
|
|
@ -8,6 +8,7 @@ import projectPanel from "./projectPanel";
|
||||||
import search from "./search";
|
import search from "./search";
|
||||||
import selectorModal from "./selectorModal";
|
import selectorModal from "./selectorModal";
|
||||||
import workspace from "./workspace";
|
import workspace from "./workspace";
|
||||||
|
import projectDiagnostics from "./projectDiagnostics";
|
||||||
|
|
||||||
export const panel = {
|
export const panel = {
|
||||||
padding: { top: 12, left: 12, bottom: 12, right: 12 },
|
padding: { top: 12, left: 12, bottom: 12, right: 12 },
|
||||||
|
@ -18,18 +19,7 @@ export default function app(theme: Theme): Object {
|
||||||
selector: selectorModal(theme),
|
selector: selectorModal(theme),
|
||||||
workspace: workspace(theme),
|
workspace: workspace(theme),
|
||||||
editor: editor(theme),
|
editor: editor(theme),
|
||||||
projectDiagnostics: {
|
projectDiagnostics: projectDiagnostics(theme),
|
||||||
tabIconSpacing: 4,
|
|
||||||
tabIconWidth: 13,
|
|
||||||
tabSummarySpacing: 10,
|
|
||||||
emptyMessage: text(theme, "sans", "primary", { size: "lg" }),
|
|
||||||
statusBarItem: {
|
|
||||||
...text(theme, "sans", "muted"),
|
|
||||||
margin: {
|
|
||||||
right: 10,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
commandPalette: commandPalette(theme),
|
commandPalette: commandPalette(theme),
|
||||||
projectPanel: projectPanel(theme),
|
projectPanel: projectPanel(theme),
|
||||||
chatPanel: chatPanel(theme),
|
chatPanel: chatPanel(theme),
|
||||||
|
|
15
styles/src/styleTree/projectDiagnostics.ts
Normal file
15
styles/src/styleTree/projectDiagnostics.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import Theme from "../themes/theme";
|
||||||
|
import {
|
||||||
|
backgroundColor,
|
||||||
|
text,
|
||||||
|
} from "./components";
|
||||||
|
|
||||||
|
export default function projectDiagnostics(theme: Theme) {
|
||||||
|
return {
|
||||||
|
background: backgroundColor(theme, 500),
|
||||||
|
tabIconSpacing: 4,
|
||||||
|
tabIconWidth: 13,
|
||||||
|
tabSummarySpacing: 10,
|
||||||
|
emptyMessage: text(theme, "sans", "secondary", { size: "md" }),
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue