diff --git a/RedPandaIDE/colorschemes/One Dark.scheme b/RedPandaIDE/colorschemes/One Dark.scheme new file mode 100644 index 00000000..91abefb9 --- /dev/null +++ b/RedPandaIDE/colorschemes/One Dark.scheme @@ -0,0 +1,262 @@ +{ + "Active Breakpoint": { + "background": "#ff565a30", + "bold": false, + "italic": false, + "strikeout": false, + "underlined": false + }, + "Active Line": { + "background": "#ff2c313c", + "bold": false, + "italic": false, + "strikeout": false, + "underlined": false + }, + "Assembler": { + "bold": false, + "foreground": "#ffff00ff", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Breakpoint": { + "bold": false, + "italic": false, + "strikeout": false, + "underlined": false + }, + "Character": { + "bold": false, + "foreground": "#ff98c379", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Class": { + "bold": false, + "foreground": "#ffe5c07b", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Comment": { + "bold": false, + "foreground": "#ff7f848e", + "italic": true, + "strikeout": false, + "underlined": false + }, + "Current Highlighted Word": { + "background": "#504a505f", + "bold": false, + "italic": false, + "strikeout": false, + "underlined": false + }, + "Editor Text": { + "background": "#ff282c34", + "bold": false, + "foreground": "#ffabb2bf", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Error": { + "bold": false, + "foreground": "#fff44747", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Escape sequences": { + "bold": false, + "foreground": "#ff56b6c2", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Float": { + "bold": false, + "foreground": "#ffd18f52", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Fold Line": { + "bold": false, + "foreground": "#ff3b4048", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Function": { + "bold": false, + "foreground": "#ff61afef", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Global variable": { + "bold": false, + "foreground": "#ffe06c75", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Gutter": { + "background": "#ff282c34", + "bold": false, + "foreground": "#ff495162", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Gutter Active Line": { + "bold": false, + "foreground": "#ffabb2bf", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Hexadecimal": { + "bold": false, + "foreground": "#ffd18f52", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Identifier": { + "bold": false, + "foreground": "#ff98c379", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Illegal Char": { + "bold": false, + "foreground": "#ffff0000", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Indent Guide Line": { + "bold": false, + "foreground": "#ffc0c0c0", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Local Variable": { + "bold": false, + "foreground": "#ffe06c75", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Number": { + "bold": false, + "foreground": "#ffd18f52", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Octal": { + "bold": false, + "foreground": "#ffd18f52", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Preprocessor": { + "bold": false, + "foreground": "#ffc678dd", + "italic": true, + "strikeout": false, + "underlined": false + }, + "Reserve Word for Types": { + "bold": false, + "foreground": "#ffc678dd", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Reserved Word": { + "bold": false, + "foreground": "#ffc678dd", + "italic": true, + "strikeout": false, + "underlined": false + }, + "Selected text": { + "background": "#ff4a505f", + "bold": false, + "italic": false, + "strikeout": false, + "underlined": false + }, + "Space": { + "bold": false, + "foreground": "#ff98c379", + "italic": false, + "strikeout": false, + "underlined": false + }, + "String": { + "bold": false, + "foreground": "#ff98c379", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Symbol": { + "bold": false, + "foreground": "#ffabb2bf", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Variable": { + "bold": false, + "foreground": "#ffe06c75", + "italic": false, + "strikeout": false, + "underlined": false + }, + "Warning": { + "bold": false, + "foreground": "#fff0a45d", + "italic": false, + "strikeout": false, + "underlined": false + }, + "brace/parenthesis/bracket level 1": { + "bold": false, + "foreground": "#ff98c379", + "italic": false, + "strikeout": false, + "underlined": false + }, + "brace/parenthesis/bracket level 2": { + "bold": false, + "foreground": "#ffd18f52", + "italic": false, + "strikeout": false, + "underlined": false + }, + "brace/parenthesis/bracket level 3": { + "bold": false, + "foreground": "#ffc678dd", + "italic": false, + "strikeout": false, + "underlined": false + }, + "brace/parenthesis/bracket level 4": { + "bold": false, + "foreground": "#ff56b6c2", + "italic": false, + "strikeout": false, + "underlined": false + } +} diff --git a/RedPandaIDE/themes/One Dark.json b/RedPandaIDE/themes/One Dark.json new file mode 100644 index 00000000..dabe7b90 --- /dev/null +++ b/RedPandaIDE/themes/One Dark.json @@ -0,0 +1,36 @@ +{ + "name": "One Dark", + "name_zh_CN": "One Dark", + "useQtFusionStyle": true, + "isDark": true, + "default scheme": "One Dark", + "default iconset": "newlook", + "palette": { + "PaletteWindow": "#282c34", + "PaletteWindowDisabled": "#21252B", + "PaletteWindowText": "#9da5b4", + "PaletteWindowTextDisabled": "#676D7B", + "PaletteBase": "#21252B", + "PaletteBaseDisabled": "#21252B", + "PaletteAlternateBase": "#282c34", + "PaletteToolTipBase": "#21252B", + "PaletteToolTipText": "#9da5b4", + "PaletteText": "#b4b4b4", + "PaletteTextDisabled": "#676D7B", + "PaletteButton": "#282c34", + "PaletteButtonDisabled": "#21252B", + "PaletteButtonText": "#9da5b4", + "PaletteButtonTextDisabled": "#676D7B", + "PaletteHighlight": "#3b4048", + "PaletteHighlightDisabled": "#21252B", + "PaletteHighlightedText": "#d7dae0", + "PaletteHighlightedTextDisabled": "#676D7B", + "PaletteLink": "#98c379", + "PaletteLinkVisited": "#c9c900", + "PaletteBrightText": "#E0E1E3", + "PaletteDark": "#282c34", + "PaletteMid": "#282c34", + "PaletteMidLight": "#282c34", + "PaletteLight": "#282c34" + } +} \ No newline at end of file diff --git a/RedPandaIDE/themes/One Dark.lua b/RedPandaIDE/themes/One Dark.lua new file mode 100644 index 00000000..e3d89630 --- /dev/null +++ b/RedPandaIDE/themes/One Dark.lua @@ -0,0 +1,53 @@ +function apiVersion() + return { + kind = "theme", + major = 0, + minor = 1, + } +end + +local nameMap = { + en_US = "One Dark", + pt_BR = "One Dark", + zh_CN = "One Dark", + zh_TW = "One Dark", +} + +function main() + local lang = C_Desktop.language() + + return { + ["name"] = nameMap[lang] or nameMap.en_US, + ["style"] = "RedPandaDarkFusion", + ["default scheme"] = "One Dark", + ["default iconset"] = "newlook", + ["palette"] = { + PaletteWindow = "#282c34", + PaletteWindowDisabled = "#21252B", + PaletteWindowText = "#9da5b4", + PaletteWindowTextDisabled = "#676D7B", + PaletteBase = "#21252B", + PaletteBaseDisabled = "#21252B", + PaletteAlternateBase = "#282c34", + PaletteToolTipBase = "#21252B", + PaletteToolTipText = "#9da5b4", + PaletteText = "#b4b4b4", + PaletteTextDisabled = "#676D7B", + PaletteButton = "#282c34", + PaletteButtonDisabled = "#21252B", + PaletteButtonText = "#9da5b4", + PaletteButtonTextDisabled = "#676D7B", + PaletteHighlight = "#3b4048", + PaletteHighlightDisabled = "#21252B", + PaletteHighlightedText = "#d7dae0", + PaletteHighlightedTextDisabled = "#676D7B", + PaletteLink = "#98c379", + PaletteLinkVisited = "#c9c900", + PaletteBrightText = "#E0E1E3", + PaletteDark = "#282c34", + PaletteMid = "#282c34", + PaletteMidLight = "#282c34", + PaletteLight = "#282c34", + }, + } +end