Dynamically load all themes listed under styles/src/themes/*.ts

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2022-05-17 16:08:14 +02:00
co-authored by Nathan Sobo
parent 8f88803695
commit 692be10b10
26 changed files with 1081 additions and 1127 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import chatPanel from "./chatPanel";
import { text } from "./components";
import contactFinder from "./contactFinder";
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { panel } from "./app";
import {
backgroundColor,
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { text, backgroundColor, border } from "./components";
export default function commandPalette(theme: Theme) {
+1 -1
View File
@@ -1,5 +1,5 @@
import chroma from "chroma-js";
import Theme, { BackgroundColorSet } from "../themes/theme";
import Theme, { BackgroundColorSet } from "../themes/common/theme";
import { fontFamilies, fontSizes, FontWeight } from "../tokens";
import { Color } from "../utils/color";
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import picker from "./picker";
import { backgroundColor, iconColor } from "./components";
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { backgroundColor, iconColor, text } from "./components";
const avatarSize = 12;
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { panel } from "./app";
import { backgroundColor, border, borderColor, iconColor, player, text } from "./components";
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import {
backgroundColor,
border,
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { backgroundColor, border, player, shadow, text } from "./components";
export default function picker(theme: Theme) {
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import {
backgroundColor,
text,
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { panel } from "./app";
import { backgroundColor, iconColor, player, text } from "./components";
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { backgroundColor, border, player, text } from "./components";
export default function search(theme: Theme) {
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { backgroundColor, border, iconColor, text } from "./components";
import { workspaceBackground } from "./workspace";
+1 -1
View File
@@ -1,4 +1,4 @@
import Theme from "../themes/theme";
import Theme from "../themes/common/theme";
import { backgroundColor, border, iconColor, shadow, text } from "./components";
import statusBar from "./statusBar";