From de0d5ffdf000eda875f12ecc5120d1f58e17fa40 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 30 Apr 2024 09:37:46 +0700 Subject: [PATCH] fix ().getWindow() is undefined (#445) --- .../ags/modules/overview/overview_hyprland.js | 4 +- .config/ags/scss/_material.scss | 124 +++++++++--------- .config/ags/user_options.js | 3 + 3 files changed, 67 insertions(+), 64 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index e1e55cc54..60b68ee88 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -331,7 +331,7 @@ export default (overviewMonitor = 0) => { }, update: (box) => { const offset = Math.floor((Hyprland.active.workspace.id - 1) / NUM_OF_WORKSPACES_SHOWN) * NUM_OF_WORKSPACES_SHOWN; - if (!App.getWindow(windowName).visible) return; + if (!App.getWindow(windowName)?.visible) return; Hyprland.messageAsync('j/clients').then(clients => { const allClients = JSON.parse(clients); const kids = box.get_children(); @@ -357,7 +357,7 @@ export default (overviewMonitor = 0) => { offset + startWorkspace <= id && id <= offset + startWorkspace + workspaces )) return; - // if (!App.getWindow(windowName).visible) return; + // if (!App.getWindow(windowName)?.visible) return; Hyprland.messageAsync('j/clients').then(clients => { const allClients = JSON.parse(clients); const kids = box.get_children(); diff --git a/.config/ags/scss/_material.scss b/.config/ags/scss/_material.scss index cddd564fb..7f6294abd 100644 --- a/.config/ags/scss/_material.scss +++ b/.config/ags/scss/_material.scss @@ -1,76 +1,76 @@ $darkmode: True; $transparent: False; -$primary_paletteKeyColor: #FE0063; -$secondary_paletteKeyColor: #9E6A62; -$tertiary_paletteKeyColor: #A66848; -$neutral_paletteKeyColor: #877274; -$neutral_variant_paletteKeyColor: #8A7174; -$background: #1D1011; -$onBackground: #F7DCDE; -$surface: #1D1011; -$surfaceDim: #1D1011; -$surfaceBright: #463537; -$surfaceContainerLowest: #170B0C; -$surfaceContainerLow: #26181A; -$surfaceContainer: #2B1C1E; -$surfaceContainerHigh: #362628; -$surfaceContainerHighest: #413032; -$onSurface: #F7DCDE; -$surfaceVariant: #574144; -$onSurfaceVariant: #DEBFC2; -$inverseSurface: #F7DCDE; -$inverseOnSurface: #3D2C2E; -$outline: #A58A8D; -$outlineVariant: #574144; +$primary_paletteKeyColor: #02DCFF; +$secondary_paletteKeyColor: #597B8F; +$tertiary_paletteKeyColor: #557AA1; +$neutral_paletteKeyColor: #6D797D; +$neutral_variant_paletteKeyColor: #6A7A7F; +$background: #091518; +$onBackground: #D8E5E9; +$surface: #091518; +$surfaceDim: #091518; +$surfaceBright: #2F3B3F; +$surfaceContainerLowest: #051013; +$surfaceContainerLow: #121D21; +$surfaceContainer: #162125; +$surfaceContainerHigh: #202C2F; +$surfaceContainerHighest: #2B373A; +$onSurface: #D8E5E9; +$surfaceVariant: #3A494E; +$onSurfaceVariant: #B9C9CE; +$inverseSurface: #D8E5E9; +$inverseOnSurface: #273236; +$outline: #839398; +$outlineVariant: #3A494E; $shadow: #000000; $scrim: #000000; -$surfaceTint: #FFB2BC; -$primary: #FFB2BC; -$onPrimary: #670023; -$primaryContainer: #910035; -$onPrimaryContainer: #FFD9DD; -$inversePrimary: #BD0048; -$secondary: #F6B8AE; -$onSecondary: #4C251F; -$secondaryContainer: #673B34; -$onSecondaryContainer: #FFDAD4; -$tertiary: #FFB693; -$onTertiary: #512309; -$tertiaryContainer: #C4815F; +$surfaceTint: #00D9FC; +$primary: #00D9FC; +$onPrimary: #003640; +$primaryContainer: #004E5C; +$onPrimaryContainer: #AAEDFF; +$inversePrimary: #006879; +$secondary: #A8CBE2; +$onSecondary: #0D3446; +$secondaryContainer: #2A4D60; +$onSecondaryContainer: #C7E9FF; +$tertiary: #A4CAF5; +$onTertiary: #003256; +$tertiaryContainer: #6F94BC; $onTertiaryContainer: #000000; $error: #FFB4AB; $onError: #690005; $errorContainer: #93000A; $onErrorContainer: #FFDAD6; -$primaryFixed: #FFD9DD; -$primaryFixedDim: #FFB2BC; -$onPrimaryFixed: #400013; -$onPrimaryFixedVariant: #910035; -$secondaryFixed: #FFDAD4; -$secondaryFixedDim: #F6B8AE; -$onSecondaryFixed: #33110C; -$onSecondaryFixedVariant: #673B34; -$tertiaryFixed: #FFDBCB; -$tertiaryFixedDim: #FFB693; -$onTertiaryFixed: #341000; -$onTertiaryFixedVariant: #6D391D; +$primaryFixed: #AAEDFF; +$primaryFixedDim: #00D9FC; +$onPrimaryFixed: #001F26; +$onPrimaryFixedVariant: #004E5C; +$secondaryFixed: #C4E7FF; +$secondaryFixedDim: #A8CBE2; +$onSecondaryFixed: #001E2C; +$onSecondaryFixedVariant: #284B5D; +$tertiaryFixed: #D0E4FF; +$tertiaryFixedDim: #A4CAF5; +$onTertiaryFixed: #001D34; +$onTertiaryFixedVariant: #21496E; $success: #B5CCBA; $onSuccess: #213528; $successContainer: #374B3E; $onSuccessContainer: #D1E9D6; -$term0: #271619; -$term1: #F63B62; -$term2: #FFA391; -$term3: #FFC4BF; -$term4: #A595C6; -$term5: #DD8195; -$term6: #F6A677; -$term7: #DCC0BC; -$term8: #BCA5A3; -$term9: #FF909B; -$term10: #FFE1DB; +$term0: #0E1C21; +$term1: #8383FF; +$term2: #63DEDB; +$term3: #75FCDD; +$term4: #78B4C1; +$term5: #7AAEEA; +$term6: #81D7DE; +$term7: #CCDBD5; +$term8: #B1BCB5; +$term9: #BCB9FF; +$term10: #F4FFFE; $term11: #FFFFFF; -$term12: #E6C59B; -$term13: #FFB4BF; -$term14: #FFDFD3; -$term15: #FFD9DD; +$term12: #BEE3E8; +$term13: #C8DAFF; +$term14: #EAFEFF; +$term15: #B0ECFC; diff --git a/.config/ags/user_options.js b/.config/ags/user_options.js index 448348d0b..c5f9d9a93 100644 --- a/.config/ags/user_options.js +++ b/.config/ags/user_options.js @@ -11,6 +11,9 @@ const userConfigOptions = { 'prevTab': "Ctrl+Page_Up", }, }, + 'sidebar': { + 'imageAllowNsfw': true, + }, } export default userConfigOptions;