diff --git a/plugins/ClaudeThemes/OFL.txt b/plugins/ClaudeThemes/OFL.txt new file mode 100644 index 00000000..0bd8bf02 --- /dev/null +++ b/plugins/ClaudeThemes/OFL.txt @@ -0,0 +1,96 @@ +The two fonts embedded in ui/zz.vue are subsets of DM Sans and Literata, used under the SIL Open Font License 1.1. + +DM Sans: Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts) +Literata: Copyright 2017 The Literata Project Authors (https://github.com/googlefonts/literata) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/plugins/ClaudeThemes/manifest.json b/plugins/ClaudeThemes/manifest.json new file mode 100644 index 00000000..4fb20d5e --- /dev/null +++ b/plugins/ClaudeThemes/manifest.json @@ -0,0 +1,12 @@ +{ + "name": "Claude Themes", + "description": "Makes bridge. look like the Claude app. Claude's colors, rounded cards, Claude style fonts and orange code colors, in a dark and a light theme.", + "id": "31342a88-85f3-4b39-b5cf-adc19d8323ba", + "author": "Draco12191712", + "version": "1.0.0", + "icon": "mdi-asterisk", + "target": "v2", + "api_version": 2, + "tags": ["Theme"], + "releaseTimestamp": 1790907291147 +} diff --git a/plugins/ClaudeThemes/scripts/ThemeSwitch.js b/plugins/ClaudeThemes/scripts/ThemeSwitch.js new file mode 100644 index 00000000..987f4138 --- /dev/null +++ b/plugins/ClaudeThemes/scripts/ThemeSwitch.js @@ -0,0 +1,27 @@ +var x1 = document.documentElement; +var thing = function () { + var q = getComputedStyle(x1).getPropertyValue("--v-claude-base"); + if (q != undefined && q.trim() != "") { + if (x1.classList.contains("claude-ui") == false) { + x1.classList.add("claude-ui"); + } + } else { + if (x1.classList.contains("claude-ui") == true) { + x1.classList.remove("claude-ui"); + } + } +}; +if (window.asdf123 != true) { + window.asdf123 = true; + var o = new MutationObserver(function (a, b) { + thing(); + }); + o.observe(document.head, { + childList: true, + subtree: true, + characterData: true, + }); + thing(); + setTimeout(thing, 500); + setTimeout(thing, 2000); +} diff --git a/plugins/ClaudeThemes/themes/Claude Dark.json b/plugins/ClaudeThemes/themes/Claude Dark.json new file mode 100644 index 00000000..a4edbcf3 --- /dev/null +++ b/plugins/ClaudeThemes/themes/Claude Dark.json @@ -0,0 +1,22 @@ +{"name":"Claude", + "colorScheme" : "dark","id":"draco12191712.claude.dark", + "colors":{"text":"#f0efec","primary":"#d97757","secondary":"#d97757","accent":"#d97757", + "error":"#e66767", "info":"#5598e7","warning":"#fab219","success":"#35b231", + "background":"#151515","sidebarNavigation":"#151515","expandedSidebar":"#262626", +"sidebarSelection":"#333332","menu":"#20201f","footer":"#151515","tooltip":"#20201f","toolbar":"#151515", + "tabActive":"#2c2c2a","tabInactive":"#151515","lineHighlightBackground":"#212120","scrollbarThumb":"#3d3d3b", + "behaviorPack":"#e66767","resourcePack":"#5598e7","skinPack":"#ec835a","worldTemplate":"#35b231","claude":"#d97757"}, + "monaco":{"editor.selectionBackground":"#0099ff4d","editor.selectionHighlightBackground":"#0099ff24","editor.inactiveSelectionBackground":"#0099ff26", +"editorLineNumber.foreground":"#6d6b67","editorLineNumber.activeForeground":"#c3c2b7", + "editorIndentGuide.background":"#ffffff14","editorIndentGuide.background1":"#ffffff14","editorIndentGuide.activeBackground":"#ffffff33","editorIndentGuide.activeBackground1":"#ffffff33", + "editorBracketMatch.background":"#ffffff14","editorBracketMatch.border":"#ffffff33", +"editorBracketHighlight.foreground1":"#d4a27f","editorBracketHighlight.foreground2":"#d97757","editorBracketHighlight.foreground3":"#7fb0dc","editorBracketHighlight.foreground4":"#d4a27f","editorBracketHighlight.foreground5":"#d97757","editorBracketHighlight.foreground6":"#7fb0dc","editorBracketHighlight.unexpectedBracket.foreground":"#e66767", + "editorWidget.background":"#20201f","editorWidget.border":"#ffffff14","editorSuggestWidget.background":"#20201f","editorSuggestWidget.border":"#ffffff14","editorSuggestWidget.selectedBackground":"#ffffff14", + "editorHoverWidget.background":"#20201f","editorHoverWidget.border":"#ffffff14","scrollbarSlider.background":"#ffffff1f","scrollbarSlider.hoverBackground":"#ffffff33","scrollbarSlider.activeBackground":"#ffffff40"}, +"highlighter": { + "string":{"color":"#d97757"},"definition":{"color":"#d4a27f"}, + "keyword": {"color": "#ebdbbc"}, +"type":{"color":"#f4ae94"},"variable":{"color":"#61aaf2"},"variableStrong":{"color":"#f4ae94"}, + "atom":{"color":"#d17a9a"},"number":{"color":"#7fb0dc"}, + "meta":{"color":"#cc785c"},"comment":{"color":"#91918d"},"delimiter":{"color":"#bfbfba"}} +} diff --git a/plugins/ClaudeThemes/themes/Claude Light.json b/plugins/ClaudeThemes/themes/Claude Light.json new file mode 100644 index 00000000..894fba04 --- /dev/null +++ b/plugins/ClaudeThemes/themes/Claude Light.json @@ -0,0 +1,22 @@ +{ +"id":"draco12191712.claude.light", "name":"Claude (Light)","colorScheme":"light", + "highlighter":{"string":{"color":"#b4552f"}, + "definition":{"color":"#8c5e33","textDecoration":"none"},"keyword":{"color":"#7a6428"}, + "type":{"color":"#a8492a"}, "variable":{"color":"#2a6fc4"},"variableStrong":{"color":"#a8492a"}, +"atom":{"color":"#a3416a"},"number":{"color":"#3d6e9e"},"meta":{"color":"#a85a40"}, + "comment":{"color":"#74736d"},"delimiter":{"color":"#52514e"}}, + "colors": {"text":"#131313", + "primary":"#c6613f","secondary":"#c6613f","accent":"#c6613f","error":"#d03b3b","info":"#2a78d6","warning":"#a66a00","success":"#1a8633", +"background":"#fcfcfb","sidebarNavigation":"#fcfcfb","expandedSidebar":"#ffffff","sidebarSelection":"#ebebe8","menu":"#ffffff", + "footer":"#fcfcfb","tooltip":"#ffffff","toolbar":"#fcfcfb","tabActive":"#efeeea","tabInactive":"#fcfcfb", + "lineHighlightBackground":"#f3f3f0","scrollbarThumb":"#cfcec8","behaviorPack":"#d03b3b","resourcePack":"#2a78d6","skinPack":"#c25124","worldTemplate":"#1a8633","claude":"#c6613f" + }, +"monaco":{ + "editor.selectionBackground":"#0073e640","editor.selectionHighlightBackground":"#0073e61a","editor.inactiveSelectionBackground":"#0073e620", + "editorLineNumber.foreground":"#a5a49a","editorLineNumber.activeForeground":"#52514e", +"editorIndentGuide.background":"#0b0b0b14","editorIndentGuide.background1":"#0b0b0b14","editorIndentGuide.activeBackground":"#0b0b0b33","editorIndentGuide.activeBackground1":"#0b0b0b33", + "editorBracketMatch.background":"#0b0b0b0f","editorBracketMatch.border":"#0b0b0b33", + "editorBracketHighlight.foreground1":"#8c5e33","editorBracketHighlight.foreground2":"#b4552f","editorBracketHighlight.foreground3":"#3d6e9e","editorBracketHighlight.foreground4":"#8c5e33","editorBracketHighlight.foreground5":"#b4552f","editorBracketHighlight.foreground6":"#3d6e9e","editorBracketHighlight.unexpectedBracket.foreground":"#d03b3b", + "editorWidget.background":"#ffffff","editorWidget.border":"#0b0b0b1a","editorSuggestWidget.background":"#ffffff","editorSuggestWidget.border":"#0b0b0b1a","editorSuggestWidget.selectedBackground":"#0b0b0b0f", +"editorHoverWidget.background":"#ffffff","editorHoverWidget.border":"#0b0b0b1a","scrollbarSlider.background":"#0b0b0b1f","scrollbarSlider.hoverBackground":"#0b0b0b33","scrollbarSlider.activeBackground":"#0b0b0b40"} +} diff --git a/plugins/ClaudeThemes/ui/ClaudeStyles.vue b/plugins/ClaudeThemes/ui/ClaudeStyles.vue new file mode 100644 index 00000000..1afc6dd7 --- /dev/null +++ b/plugins/ClaudeThemes/ui/ClaudeStyles.vue @@ -0,0 +1,331 @@ + +