From 08203f135bd07dac9dde158b0f37694f30daff1c Mon Sep 17 00:00:00 2001 From: Zan <62830223+Zan1456@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:34:56 +0100 Subject: [PATCH] Remove custom themes --- i18n/en.json | 27 --- i18n/hu.json | 27 --- settings/index.css | 359 ------------------------------------ settings/index.html | 122 ------------- settings/index.js | 432 -------------------------------------------- 5 files changed, 967 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 10a6915..b30b9aa 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -32,33 +32,6 @@ "title": "Support", "description": "If you like our work and would like to support the development, you can do so in the following way:", "kofi": "Ko-Fi" - }, - "custom_theme": { - "title": "Custom Theme", - "create": "Create New Theme", - "import": "Import Theme", - "editor_title": "Theme Editor", - "import_title": "Import Theme", - "name": "Theme name", - "background": "Background", - "text": "Text", - "accent": "Accent colors", - "main_background": "Main background", - "card_background": "Card background", - "primary_text": "Primary text", - "secondary_text": "Secondary text", - "primary_accent": "Primary accent", - "secondary_accent": "Secondary accent", - "preview": "Preview", - "save": "Save", - "cancel": "Cancel", - "import_string": "Theme ID", - "apply": "Apply", - "edit": "Edit", - "export": "Export", - "delete": "Delete", - "no_themes": "No custom themes yet", - "delete_confirm": "Are you sure you want to delete the \"{name}\" theme?" } }, "navigation": { diff --git a/i18n/hu.json b/i18n/hu.json index 1f73c72..52436cb 100644 --- a/i18n/hu.json +++ b/i18n/hu.json @@ -34,33 +34,6 @@ "title": "Támogatás", "description": "Ha tetszik a munkánk és szeretnéd támogatni a fejlesztést, az alábbi módon teheted meg:", "kofi": "Ko-Fi" - }, - "custom_theme": { - "title": "Egyéni Téma", - "create": "Új Téma Létrehozása", - "import": "Téma Importálása", - "editor_title": "Téma Szerkesztő", - "import_title": "Téma Importálása", - "name": "Téma neve", - "background": "Háttér", - "text": "Szöveg", - "accent": "Kiemelő színek", - "main_background": "Fő háttér", - "card_background": "Kártya háttér", - "primary_text": "Elsődleges szöveg", - "secondary_text": "Másodlagos szöveg", - "primary_accent": "Elsődleges kiemelő", - "secondary_accent": "Másodlagos kiemelő", - "preview": "Előnézet", - "save": "Mentés", - "cancel": "Mégse", - "import_string": "Téma azonosító", - "apply": "Alkalmaz", - "edit": "Szerkeszt", - "export": "Export", - "delete": "Töröl", - "no_themes": "Még nincsenek egyéni témák", - "delete_confirm": "Biztosan törölni szeretnéd a \"{name}\" témát?" } }, "navigation": { diff --git a/settings/index.css b/settings/index.css index 12e21eb..79945db 100644 --- a/settings/index.css +++ b/settings/index.css @@ -72,16 +72,6 @@ h2 { font-size:16px; color:var(--text-primary); } - -.custom-theme-editor .setting-header { - justify-content:space-between; -} - -.setting-header > div:first-child { - display:flex; - align-items:center; - gap:8px; -} .theme-grid,.language-grid { display:grid; grid-template-columns:repeat(2,1fr); @@ -251,355 +241,6 @@ h2 { text-align:center; } -.theme-editor-controls { - display: flex; - gap: 8px; -} - -.icon-btn { - background: var(--button-secondaryFill); - border: none !important; - border-radius: 8px; - width: 36px; - height: 36px; - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - transition: all 0.2s ease; - color: var(--text-primary); -} - -.icon-btn:hover { - background: var(--accent-accent); - color: white; - transform: translateY(-1px); -} - -.icon-btn .material-icons-round { - font-size: 18px; -} - -.btn-primary, .btn-secondary { - padding: 8px 16px; - border-radius: 8px; - border: none; - font-family: inherit; - font-size: 14px; - font-weight: 500; - cursor: pointer; - transition: all 0.2s ease; -} - -.btn-primary { - background: var(--accent-accent); - color: white; -} - -.btn-primary:hover { - background: var(--accent-secondary); -} - -.btn-secondary { - background: var(--button-secondaryFill); - color: var(--text-primary); - border: 1px solid var(--accent-15); -} - -.btn-secondary:hover { - background: var(--accent-15); -} - -.custom-themes-list { - display: flex; - flex-direction: column; - gap: 8px; -} - -.custom-theme-item { - display: flex; - align-items: center; - justify-content: space-between; - padding: 12px; - background: var(--button-secondaryFill); - border-radius: 8px; - border: 1px solid var(--accent-15); -} - -.custom-theme-info { - display: flex; - align-items: center; - gap: 12px; -} - -.custom-theme-preview-mini { - width: 40px; - height: 24px; - border-radius: 4px; - display: flex; - overflow: hidden; -} - -.custom-theme-preview-mini .color-strip { - flex: 1; - height: 100%; -} - -.custom-theme-name { - font-weight: 500; - color: var(--text-primary); -} - -.custom-theme-actions { - display: flex; - gap: 4px; -} - -.action-btn { - padding: 6px; - border: none; - border-radius: 4px; - background: var(--accent-15); - color: var(--text-primary); - cursor: pointer; - font-size: 16px; - transition: background 0.2s ease; - display: flex; - align-items: center; - justify-content: center; - width: 32px; - height: 32px; -} - -.action-btn .material-icons-round { - font-size: 16px; -} - -.action-btn:hover { - background: var(--accent-accent); - color: white; -} - -.action-btn.delete:hover { - background: var(--error-accent); -} - -.theme-editor-modal, .import-modal { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.5); - display: flex; - align-items: center; - justify-content: center; - z-index: 1000; -} - -.modal-content { - background: var(--card-card); - border-radius: 16px; - width: 90%; - max-width: 500px; - max-height: 90vh; - overflow-y: auto; - box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); -} - -.modal-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 16px; - border-bottom: 1px solid var(--accent-15); -} - -.modal-header h3 { - margin: 0; - color: var(--text-primary); - font-size: 18px; -} - -.close-modal { - background: none; - border: none; - color: var(--text-secondary); - cursor: pointer; - padding: 4px; - border-radius: 4px; - transition: background 0.2s ease; -} - -.close-modal:hover { - background: var(--accent-15); -} - -.modal-body { - padding: 16px; -} - -.modal-footer { - display: flex; - gap: 8px; - justify-content: flex-end; - padding: 16px; - border-top: 1px solid var(--accent-15); -} - -.theme-name-input { - margin-bottom: 20px; -} - -.theme-name-input label { - display: block; - margin-bottom: 4px; - color: var(--text-primary); - font-weight: 500; -} - -.theme-name-input input { - width: 100%; - padding: 8px 12px; - border: 1px solid var(--accent-15); - border-radius: 8px; - background: var(--button-secondaryFill); - color: var(--text-primary); - font-family: inherit; -} - -.color-groups { - display: flex; - flex-direction: column; - gap: 20px; - margin-bottom: 20px; -} - -.color-group h4 { - margin: 0 0 12px 0; - color: var(--text-primary); - font-size: 16px; -} - -.color-inputs { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 12px; -} - -.color-input-group { - display: flex; - flex-direction: column; - gap: 4px; -} - -.color-input-group label { - color: var(--text-secondary); - font-size: 12px; - font-weight: 500; -} - -.color-input-group input[type="color"] { - width: 100%; - height: 40px; - border: 1px solid var(--accent-15); - border-radius: 8px; - background: var(--card-card); - cursor: pointer; - padding: 4px; -} - -.color-input-group input[type="color"]::-webkit-color-swatch-wrapper { - padding: 0; - border-radius: 6px; - overflow: hidden; -} - -.color-input-group input[type="color"]::-webkit-color-swatch { - border: none; - border-radius: 6px; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); -} - -.theme-preview-container h4 { - margin: 0 0 12px 0; - color: var(--text-primary); - font-size: 16px; -} - -.custom-theme-preview { - border: 1px solid var(--accent-15); - border-radius: 8px; - overflow: hidden; - height: 120px; - position: relative; -} - -.custom-theme-preview .preview-header { - height: 30px; - background: var(--preview-background, var(--background)); - border-bottom: 1px solid var(--accent-15); -} - -.custom-theme-preview .preview-content { - padding: 12px; - background: var(--preview-background, var(--background)); -} - -.custom-theme-preview .preview-card { - background: var(--preview-card, var(--card-card)); - border-radius: 8px; - padding: 12px; - height: 100%; - display: flex; - flex-direction: column; - gap: 8px; -} - -.preview-text-primary { - color: var(--preview-text-primary, var(--text-primary)); - font-weight: 600; - font-size: 14px; -} - -.preview-text-secondary { - color: var(--preview-text-secondary, var(--text-secondary)); - font-size: 12px; -} - -.preview-accent { - background: var(--preview-accent, var(--accent-accent)); - color: white; - padding: 6px 12px; - border-radius: 6px; - font-size: 12px; - font-weight: 500; - display: inline-block; - margin-top: 4px; -} - -.import-input { - display: flex; - flex-direction: column; - gap: 8px; -} - -.import-input label { - color: var(--text-primary); - font-weight: 500; -} - -.import-input textarea { - width: 100%; - padding: 12px; - border: 1px solid var(--accent-15); - border-radius: 8px; - background: var(--button-secondaryFill); - color: var(--text-primary); - font-family: inherit; - resize: vertical; - min-height: 80px; -} .material-icons-round { font-size:18px; vertical-align:middle; diff --git a/settings/index.html b/settings/index.html index 26b6376..ea222df 100644 --- a/settings/index.html +++ b/settings/index.html @@ -52,128 +52,6 @@ -
${emptyMessage}
`; - return; - } - - this.customThemes.forEach(theme => { - const themeElement = this.createThemeElement(theme); - container.appendChild(themeElement); - });*/ - } - - createThemeElement(theme) { - const element = document.createElement('div'); - element.className = 'custom-theme-item'; - - const colors = theme.colors; - const previewColors = [ - colors.background || '#DAE4F7', - colors.cardCard || '#EDF3FF', - colors.accentAccent || '#3673EE', - colors.textPrimary || '#050B15' - ]; - - const translations = window.translations?.settings?.custom_theme || {}; - - element.innerHTML = ` -