diff --git a/app/components/FormatInstructions.tsx b/app/components/FormatInstructions.tsx index 0c72804..1b28b1b 100644 --- a/app/components/FormatInstructions.tsx +++ b/app/components/FormatInstructions.tsx @@ -28,7 +28,7 @@ const FormatInstructions: React.FC = ({ isOpen, onClose

JSON

-

JSON format can be used in various terminals. Refer to your terminal's documentation for specific instructions.

+

JSON format can be used in various terminals. Refer to your terminal's documentation for specific instructions.

XResources

    @@ -41,7 +41,7 @@ const FormatInstructions: React.FC = ({ isOpen, onClose
    1. Download the TOML file.
    2. Place it in your Alacritty configuration directory.
    3. -
    4. In your alacritty.toml file, add: import = ["/path/to/your/theme.toml"]
    5. +
    6. In your alacritty.toml file, add: import = ["/path/to/your/theme.toml"]

    iTerm2

    @@ -49,7 +49,7 @@ const FormatInstructions: React.FC = ({ isOpen, onClose
  1. Download the iTerm2 color scheme file.
  2. Open iTerm2 preferences.
  3. Go to Profiles > Colors.
  4. -
  5. Click on "Color Presets..." and choose "Import..."
  6. +
  7. Click on "Color Presets..." and choose "Import..."
  8. Select the downloaded file.
@@ -57,8 +57,8 @@ const FormatInstructions: React.FC = ({ isOpen, onClose
  1. Download the JSON file.
  2. Open Windows Terminal settings.
  3. -
  4. In the "schemes" array, add the contents of the downloaded JSON file.
  5. -
  6. In your profile, set "colorScheme" to the name of your new scheme.
  7. +
  8. In the "schemes" array, add the contents of the downloaded JSON file.
  9. +
  10. In your profile, set "colorScheme" to the name of your new scheme.

Terminal.app (macOS)

diff --git a/app/page.tsx b/app/page.tsx index 76db5a7..0a56e0f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -8,7 +8,7 @@ import Settings from "./components/Settings"; import HelpDialog from "./components/HelpDialog"; import { ColorScheme, knownSchemes, generateRandomScheme, generateSchemeFromGeneticAlgorithm } from './utils/colorSchemes'; import { AnimatePresence } from 'framer-motion'; -import { CodeSample, AppSettings } from './utils/types'; +import { AppSettings } from './utils/types'; export default function Home() { const [schemes, setSchemes] = useState([]); diff --git a/app/utils/colorSchemes.ts b/app/utils/colorSchemes.ts index b09acd2..df16550 100644 --- a/app/utils/colorSchemes.ts +++ b/app/utils/colorSchemes.ts @@ -166,27 +166,27 @@ function getTheme(dominantColor: Color): string { return theme ? theme.name : ''; } -function getRandomAdjective(color: Color): string { - const adjectives = { - warm: ['Cozy', 'Toasty', 'Snug'], - cool: ['Crisp', 'Fresh', 'Breezy'], - neutral: ['Balanced', 'Harmonious', 'Zen'], - bright: ['Radiant', 'Luminous', 'Gleaming'], - dark: ['Mysterious', 'Enigmatic', 'Shadowy'], - }; +// function getRandomAdjective(color: Color): string { +// const adjectives = { +// warm: ['Cozy', 'Toasty', 'Snug'], +// cool: ['Crisp', 'Fresh', 'Breezy'], +// neutral: ['Balanced', 'Harmonious', 'Zen'], +// bright: ['Radiant', 'Luminous', 'Gleaming'], +// dark: ['Mysterious', 'Enigmatic', 'Shadowy'], +// }; - const hue = color.hue(); - const lightness = color.lightness(); +// const hue = color.hue(); +// const lightness = color.lightness(); - let category: keyof typeof adjectives; - if (hue < 60 || hue > 300) category = 'warm'; - else if (hue >= 60 && hue <= 300) category = 'cool'; - else if (lightness > 70) category = 'bright'; - else if (lightness < 30) category = 'dark'; - else category = 'neutral'; +// let category: keyof typeof adjectives; +// if (hue < 60 || hue > 300) category = 'warm'; +// else if (hue >= 60 && hue <= 300) category = 'cool'; +// else if (lightness > 70) category = 'bright'; +// else if (lightness < 30) category = 'dark'; +// else category = 'neutral'; - return adjectives[category][Math.floor(Math.random() * adjectives[category].length)]; -} +// return adjectives[category][Math.floor(Math.random() * adjectives[category].length)]; +// } function generateRandomScheme(totalSchemes: number): ColorScheme { if (totalSchemes < 30) {