diff --git a/src/app/Globals.css b/src/app/Globals.css index 6dae882..edce01c 100644 --- a/src/app/Globals.css +++ b/src/app/Globals.css @@ -65,11 +65,19 @@ body { } .button { - @apply bg-[#0a6ec8] hover:bg-[#1361ad] disabled:bg-[#124c7e] disabled:hover:bg-[#1b3f63] disabled:text-[#bdbdbd] disabled:hover:text-[#e6e6e6] rounded-md cursor-pointer text-[16px] py-1.5 px-3 transition-colors duration-[0.25s]; + @apply rounded-md cursor-pointer text-[16px] py-1.5 px-3 transition-colors border; } -.button-green { - @apply bg-[#28a745] hover:bg-[#218838] disabled:bg-[#1c7430] disabled:hover:bg-[#1a5c24] disabled:text-[#bdbdbd] disabled:hover:text-[#e6e6e6]; +.btntheme1 { + @apply bg-(--col2) border-(--col4) hover:bg-(--col4) hover:border-(--col6); +} + +.btntheme2 { + @apply bg-(--col3) border-(--col5) hover:bg-(--col5) hover:border-(--col7); +} + +.btntheme3 { + @apply bg-(--col4) border-(--col6) hover:bg-(--col6) hover:border-(--col8); } ::-webkit-scrollbar { @@ -111,7 +119,7 @@ body { } .popup-box { - @apply relative w-[600px] h-[480px] rounded-lg bg-(--col1) border border-(--col3) flex flex-col p-6; + @apply relative w-150 h-120 rounded-lg bg-(--col1) border border-(--col3) flex flex-col p-6; } .popup-content { @@ -139,13 +147,5 @@ body { } .entry-info-item { - @apply flex flex-row items-center gap-1 bg-(--col1) border border-(--col3) text-gray-300 py-1 px-2 rounded-lg w-fit text-[16px] transition-colors cursor-pointer; -} - -.downloads-entry:hover .entry-info-item { - @apply bg-(--col2) border-(--col4); -} - -.popup-content .entry-info-item:hover { - @apply bg-(--col3) border-(--col5); + @apply flex flex-row items-center gap-1 border text-gray-300 py-1 px-2 rounded-lg w-fit text-[16px] transition-colors cursor-pointer; } diff --git a/src/app/Installs.css b/src/app/Installs.css index 9b138a4..8edad70 100644 --- a/src/app/Installs.css +++ b/src/app/Installs.css @@ -9,9 +9,5 @@ } .downloads-entry { - @apply flex justify-between items-center m-2 p-4 rounded-lg text-gray-200 text-lg transition-colors cursor-default bg-(--col2) hover:bg-(--col3) border border-(--col4) hover:border-(--col5); -} - -.downloads-entry p.score { - @apply font-mono text-blue-500 text-lg; + @apply flex justify-between items-center m-2 p-4 rounded-lg text-gray-200 text-lg transition-colors bg-(--col2) hover:bg-(--col3) border border-(--col4) hover:border-(--col5); } diff --git a/src/app/componets/Sidebar.css b/src/app/componets/Sidebar.css index abef056..9ea0b86 100644 --- a/src/app/componets/Sidebar.css +++ b/src/app/componets/Sidebar.css @@ -5,20 +5,20 @@ } .sidebar-downloads { - @apply text-[#bdbdbd] fixed bottom-3 left-2 bg-(--col2) rounded-lg border border-(--col3) w-55 p-4 cursor-pointer transition-colors duration-[0.25s]; + @apply text-[#bdbdbd] fixed bottom-2 left-2 bg-(--col2) rounded-lg border border-(--col3) px-4 py-3 text-xl cursor-pointer transition-colors duration-[0.25s] opacity-75; } .sidebar-downloads:hover { - @apply text-white; + @apply text-white opacity-100; @apply bg-(--col3) border-(--col4); } .logo { - @apply text-2xl font-bold p-4; + @apply flex items-center pl-1 h-14 w-60; } .nav-links { - @apply flex flex-col p-4 space-y-1 overflow-y-auto overflow-x-hidden; + @apply flex flex-col px-4 space-y-1; } .link { @@ -37,3 +37,11 @@ .link.active:hover { @apply bg-(--col3) border-(--col4); } + +.sidebar ::-webkit-scrollbar { + @apply hidden; +} + +.macos-drag { + @apply h-7 fixed top-0 left-0 w-60 -z-10; +} diff --git a/src/app/componets/Sidebar.tsx b/src/app/componets/Sidebar.tsx index 49fadf5..274dd3c 100644 --- a/src/app/componets/Sidebar.tsx +++ b/src/app/componets/Sidebar.tsx @@ -12,11 +12,11 @@ import { } from '@fortawesome/free-solid-svg-icons' import { faDiscord } from '@fortawesome/free-brands-svg-icons' import { platform } from '@tauri-apps/plugin-os' -import { getCurrentWindow } from '@tauri-apps/api/window' import { useGlobal } from '../GlobalProvider' import Image from 'next/image' import Link from 'next/link' import { usePathname, useSearchParams } from 'next/navigation' +import { getCurrentWindow } from '@tauri-apps/api/window' export default function Sidebar () { const { @@ -34,89 +34,96 @@ export default function Sidebar () { return (