-
-
-
- {{ theme.displayName }}
+ STYLES
+
+
+
+
+
+
+ {{ style.displayName }}
+
+
-
+
+
+ LAYOUTS
+
+
+
+
+
+
+ {{ layout.displayName }}
+
+
+
![]()
+
+
+
@@ -32,39 +57,120 @@
\ No newline at end of file
diff --git a/components/UserInterface/ContextMenu.vue b/components/UserInterface/ContextMenu.vue
index dac6efc..1767657 100644
--- a/components/UserInterface/ContextMenu.vue
+++ b/components/UserInterface/ContextMenu.vue
@@ -50,7 +50,7 @@ function runCallback(item: ContextMenuItem) {
height: 2rem;
width: 100%;
color: var(--text-color);
- background-color: var(--sidebar-highlighted-background-color);
+ background-color: var(--popup-background-color);
border: none;
text-align: left;
padding-left: 1rem;
@@ -58,7 +58,7 @@ function runCallback(item: ContextMenuItem) {
}
.context-menu-item:hover {
- background-color: rgb(50, 50, 50);
+ background-color: var(--popup-highlighted-background-color);
}
.context-menu-item-danger {
diff --git a/components/UserInterface/MessageReply.vue b/components/UserInterface/MessageReply.vue
index c3efd2b..f3214b5 100644
--- a/components/UserInterface/MessageReply.vue
+++ b/components/UserInterface/MessageReply.vue
@@ -58,7 +58,7 @@ function scrollToReply(e: MouseEvent) {
console.log("scrolling into view");
reply.scrollIntoView({ behavior: "smooth", block: "center" });
reply.style.transition = "background-color .3s";
- reply.style.backgroundColor = "var(--primary-highlighted-color)";
+ reply.style.backgroundColor = "var(--chat-featured-message-color)";
setTimeout(() => {
reply.style.backgroundColor = "";
}, 1000);
diff --git a/components/UserInterface/ResizableSidebar.vue b/components/UserInterface/ResizableSidebar.vue
index 27b0730..79e95bd 100644
--- a/components/UserInterface/ResizableSidebar.vue
+++ b/components/UserInterface/ResizableSidebar.vue
@@ -34,7 +34,7 @@ const storedWidth = ref
();
const contextMenu = useState("contextMenu");
const menuItems: ContextMenuItem[] = [
- { name: "Reset", callback: () => {
+ { name: "Reset", type: "normal", callback: () => {
const defaultWidth = props.width ?? props.minWidth;
resizableSidebar.value!.style.width = defaultWidth;
if (props.localStorageName) {
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 46890d1..05a40fa 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -30,9 +30,6 @@ export default defineNuxtConfig({
messageGroupingMaxDifference: 300000,
buildTimeString: new Date().toISOString(),
gitHash: process.env.GIT_SHORT_REV || "N/A",
- defaultThemes: [
- "light", "ash", "dark", "rainbow-capitalism"
- ]
}
},
/* nitro: {
diff --git a/pages/servers/[serverId]/channels/[channelId].vue b/pages/servers/[serverId]/channels/[channelId].vue
index b2e0782..f07dabd 100644
--- a/pages/servers/[serverId]/channels/[channelId].vue
+++ b/pages/servers/[serverId]/channels/[channelId].vue
@@ -24,8 +24,7 @@
border-sides="left" local-storage-name="membersListWidth">
@@ -50,7 +49,6 @@ const channels = ref();
const channel = ref();
const members = ref();
-const totalMemberCount = ref(0);
const showInvitePopup = ref(false);
const showGuildSettings = ref(false);
@@ -67,16 +65,6 @@ onMounted(async () => {
console.log("fetched guild");
await setArrayVariables();
console.log("set array variables");
- const membersList = document.getElementById("members-list");
- if (membersList) {
- membersList.addEventListener("scroll", (e) => {
- if (e.target && e.target instanceof Element) {
- if (isVisible(e.target)) {
-
- }
- }
- });
- }
});
onActivated(async () => {
@@ -91,8 +79,6 @@ onActivated(async () => {
async function setArrayVariables() {
const membersRes = await fetchMembers(route.params.serverId as string);
members.value = membersRes.objects;
- totalMemberCount.value = (membersRes.amount * membersRes.pages) - membersRes.amount;
- console.log("Placeholder count:", totalMemberCount.value);
const guildUrl = `guilds/${route.params.serverId}`;
channels.value = await fetchWithApi(`${guildUrl}/channels`);
console.log("channels:", channels.value);
@@ -112,20 +98,6 @@ function toggleInvitePopup(e: Event) {
function handleMemberClick(member: GuildMemberResponse) {
}
-
-function isVisible(element: Element) {
- const rect = element.getBoundingClientRect();
- return (
- rect.top >= 0 &&
- rect.left >= 0 &&
- rect.bottom <= (
- window.innerHeight ||
- document.documentElement.clientHeight) &&
- rect.right <= (
- window.innerWidth ||
- document.documentElement.clientWidth)
- );
-}