Skip to content

VasylRomanets/everforest-coteditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌲 Everforest for CotEditor

Everforest is a green-based color scheme designed to be warm and soft in order to protect developers' eyes. This repo brings 6 of its themes to CotEditor, based on the original Everforest scheme by sainnhe.

Previews

Dark Hard Dark Medium Dark Soft
Everforest Dark (Hard) Everforest Dark (Medium) Everforest Dark (Soft)
Light Hard Light Medium Light Soft
Everforest Light (Hard) Everforest Light (Medium) Everforest Light (Soft)

Screenshots use Meslo LG Nerd Font.

Sample code used in screenshots
# Dunder Mifflin Scranton Branch — Staff Management System

BRANCH = "Scranton"
MAX_CHAOS_LEVEL = 10
PRETZEL_DAY = True


class Employee:

    def __init__(self, name: str, title: str, chaos: int = 0):
        self.name = name
        self.title = title
        self.chaos_level = chaos
        self.is_regional_manager = False

    def declare_bankruptcy(self) -> None:
        print(f"{self.name}: I DECLARE BANKRUPTCY!")

    def chaos(self) -> bool:
        return self.chaos_level >= MAX_CHAOS_LEVEL


class RegionalManager(Employee):

    CATCHPHRASE = "That's what she said."

    def __init__(self, name: str):
        super().__init__(name, "Regional Manager", chaos=9)
        self.is_regional_manager = True
        self.clients_scared_off: int = 0

    def motivate(self, staff: list[Employee]) -> str:
        for employee in staff:
            employee.chaos_level += 1
        return self.CATCHPHRASE


def pretzel_day_capacity(employees: list[Employee]) -> int:
    # Pretzel Day always exceeds normal branch capacity
    return len(employees) * 3


staff = [
    RegionalManager("Michael Scott"),
    Employee("Dwight Schrute", "Assistant (to the) Regional Manager", chaos=7),
    Employee("Jim Halpert", "Sales Representative", chaos=3),
    Employee("Pam Beesly", "Receptionist", chaos=1),
    Employee("Kevin Malone", "Accountant", chaos=5),
]

if PRETZEL_DAY:
    capacity = pretzel_day_capacity(staff)
    print(f"Scranton capacity today: {capacity}")

Installation

Via Terminal

Mac App Store:

git clone --depth=1 --no-tags https://github.com/vasylromanets/everforest-coteditor /tmp/everforest-coteditor
cp /tmp/everforest-coteditor/themes/*.cottheme ~/Library/Containers/com.coteditor.CotEditor/Data/Library/Application\ Support/CotEditor/Themes/
rm -rf /tmp/everforest-coteditor

Direct download / Homebrew:

git clone --depth=1 --no-tags https://github.com/vasylromanets/everforest-coteditor /tmp/everforest-coteditor
cp /tmp/everforest-coteditor/themes/*.cottheme ~/Library/Application\ Support/CotEditor/Themes/
rm -rf /tmp/everforest-coteditor

Via Finder

Copy the .cottheme files into:

Mac App Store: ~/Library/Containers/com.coteditor.CotEditor/Data/Library/Application Support/CotEditor/Themes

Direct download / Homebrew: ~/Library/Application Support/CotEditor/Themes

~/Library is hidden by default. Open it in Finder via Go → Go to Folder (⇧⌘G) and paste the path.

Via CotEditor

  1. Download the .cottheme files from the themes/ folder.
  2. Open CotEditor → Settings → Appearance.
  3. Drag the downloaded files into the theme list.

Community Resources

The following are unofficial resources where you can find Everforest ports for other apps and tools:

License

MIT

About

🌲 Everforest themes for CotEditor

Topics

Resources

License

Stars

3 stars

Watchers

0 watching

Forks

Contributors