improved themes, better back arrows on #menu

This commit is contained in:
SethBurkart123
2023-10-24 23:35:21 +11:00
parent d15db5c78a
commit aa955010f3
2 changed files with 45 additions and 14 deletions
+30 -9
View File
@@ -100,29 +100,50 @@ const Themes: FC = () => {
{ {
id: 'image-preset-1', id: 'image-preset-1',
type: 'image', type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-1.jpeg', url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-1.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-1-thumb.jpeg', previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-1-thumb.jpg',
isPreset: true isPreset: true
}, },
{ {
id: 'image-preset-2', id: 'image-preset-2',
type: 'image', type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-2.jpeg', url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-2.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-2-thumb.jpeg', previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-2-thumb.jpg',
isPreset: true isPreset: true
}, },
{ {
id: 'image-preset-3', id: 'image-preset-3',
type: 'image', type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-3.jpg', url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-3.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-3-thumb.jpeg', previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-3-thumb.jpg',
isPreset: true isPreset: true
}, },
{ {
id: 'image-preset-4', id: 'image-preset-4',
type: 'image', type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-4.jpeg', url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-4.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-4-thumb.jpeg', previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-4-thumb.jpg',
isPreset: true
},
{
id: 'image-preset-5',
type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-5.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-5-thumb.jpg',
isPreset: true
},
{
id: 'image-preset-6',
type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-6.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-6-thumb.jpg',
isPreset: true
},
{
id: 'image-preset-7',
type: 'image',
url: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-7.jpg',
previewUrl: 'https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-7-thumb.jpg',
isPreset: true isPreset: true
}, },
@@ -254,7 +275,7 @@ const handlePresetClick = async (bg: Background): Promise<void> => {
{backgrounds.concat(presetBackgrounds as Background[]).filter(bg => bg.type === 'image' && bg.isPreset && !bg.isDownloaded && !downloadedPresetIds.includes(bg.id)).map(bg => ( {backgrounds.concat(presetBackgrounds as Background[]).filter(bg => bg.type === 'image' && bg.isPreset && !bg.isDownloaded && !downloadedPresetIds.includes(bg.id)).map(bg => (
<div key={bg.id} <div key={bg.id}
onClick={() => handlePresetClick(bg)} onClick={() => handlePresetClick(bg)}
className='relative w-16 h-16 transition cursor-pointer rounded-xl'> className={`relative w-16 h-16 transition cursor-pointer rounded-xl duration-300 ${ isEditMode ? 'opacity-0 pointer-events-none' : 'opacity-100'}`}>
{bg.isPreset && downloadProgress[bg.id] !== undefined && ( {bg.isPreset && downloadProgress[bg.id] !== undefined && (
<div className="absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full"> <div className="absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full">
<svg className="w-full h-full text-zinc-100 dark:text-zinc-700" viewBox="0 0 36 36"> <svg className="w-full h-full text-zinc-100 dark:text-zinc-700" viewBox="0 0 36 36">
@@ -300,7 +321,7 @@ const handlePresetClick = async (bg: Background): Promise<void> => {
{backgrounds.concat(presetBackgrounds as Background[]).filter(bg => bg.type === 'video' && bg.isPreset && !bg.isDownloaded && !downloadedPresetIds.includes(bg.id)).map(bg => ( {backgrounds.concat(presetBackgrounds as Background[]).filter(bg => bg.type === 'video' && bg.isPreset && !bg.isDownloaded && !downloadedPresetIds.includes(bg.id)).map(bg => (
<div key={bg.id} <div key={bg.id}
onClick={() => handlePresetClick(bg)} onClick={() => handlePresetClick(bg)}
className='relative w-16 h-16 transition cursor-pointer rounded-xl'> className={`relative w-16 h-16 transition cursor-pointer rounded-xl duration-300 ${ isEditMode ? 'opacity-0 pointer-events-none' : 'opacity-100'}`}>
{bg.isPreset && downloadProgress[bg.id] !== undefined && ( {bg.isPreset && downloadProgress[bg.id] !== undefined && (
<div className="absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full"> <div className="absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full">
<svg className="w-full h-full text-zinc-100 dark:text-zinc-700" viewBox="0 0 36 36"> <svg className="w-full h-full text-zinc-100 dark:text-zinc-700" viewBox="0 0 36 36">
+15 -5
View File
@@ -319,7 +319,7 @@ ol:has(.MessageList__avatar___2wxyb svg) {
#container #content::before { #container #content::before {
content: ""; content: "";
height: 5.5rem; height: 69.5px;;
width: 100%; width: 100%;
} }
@@ -1328,7 +1328,11 @@ iframe.userHTML {
#toolbar { #toolbar {
color: var(--text-primary); color: var(--text-primary);
background: unset; background: var(--background-primary);
}
.dailycal > .zoom {
display: none;
} }
.programmeNavigator > .navigator, .programmeNavigator > .navigator,
@@ -1432,6 +1436,10 @@ ul {
background: var(--background-primary); background: var(--background-primary);
} }
.back > svg {
transform: scale(1.2);
}
.uiFileHandler { .uiFileHandler {
-webkit-box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0) !important; -webkit-box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0) !important;
box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0) !important; box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0) !important;
@@ -1614,17 +1622,19 @@ blurred {
.uiSlidePane.shown > .pane { .uiSlidePane.shown > .pane {
transform: translatey(0%) !important; transform: translatey(0%) !important;
opacity: 1;
} }
.uiSlidePane > .pane { .uiSlidePane > .pane {
color: var(--text-primary); color: var(--text-primary);
background: var(--auto-background); background: var(--auto-background);
transform: translateY(100%); transform: translateY(100%);
transition: transition: transform 0.5s ease-out,
transform 0.5s ease-in-out, -webkit-transform 0.5s ease-out,
-webkit-transform 0.5s ease-in-out; opacity 0.2s ease-out;
transition-delay: 0 !important; transition-delay: 0 !important;
border-radius: 1rem !important; border-radius: 1rem !important;
opacity: 0;
} }
.anyoneSelect.filterBox { .anyoneSelect.filterBox {