From d449e6bc08c3312f13220be56cbe1644c6a070aa Mon Sep 17 00:00:00 2001 From: Devolian Date: Sun, 13 Jul 2025 04:03:33 -0400 Subject: [PATCH 01/16] Save --- photon-client/src/App.vue | 6 +- .../assets/images/logoSmallTransparent.svg | 25 ++++++ .../src/assets/styles/variables.scss | 4 + .../src/components/app/photon-sidebar.vue | 38 +++++++- .../cameras/CameraCalibrationCard.vue | 21 ++--- .../components/cameras/CameraControlCard.vue | 4 +- .../components/cameras/CameraSettingsCard.vue | 11 +-- .../src/components/common/pv-slider.vue | 10 +-- .../src/components/common/pv-switch.vue | 16 +--- .../dashboard/CameraAndPipelineSelectCard.vue | 7 +- .../src/components/dashboard/CamerasCard.vue | 7 +- .../components/dashboard/ConfigOptions.vue | 54 +++--------- .../components/dashboard/StreamConfigCard.vue | 17 ++-- .../components/dashboard/tabs/TargetsTab.vue | 1 - .../settings/ApriltagControlCard.vue | 14 ++- .../components/settings/DeviceControlCard.vue | 39 +++------ .../src/components/settings/MetricsCard.vue | 86 ++++++------------- .../components/settings/NetworkingCard.vue | 12 +-- photon-client/src/plugins/vuetify.ts | 81 +++++++++++------ .../src/main/resources/web/index.html | 15 +++- 20 files changed, 232 insertions(+), 236 deletions(-) create mode 100644 photon-client/src/assets/images/logoSmallTransparent.svg diff --git a/photon-client/src/App.vue b/photon-client/src/App.vue index b23e2c756e..98b193ccd6 100644 --- a/photon-client/src/App.vue +++ b/photon-client/src/App.vue @@ -100,7 +100,7 @@ if (!is_demo) { } .main-container { - background-color: #232c37; + // background-color: #232c37; padding: 0 !important; } @@ -114,4 +114,8 @@ if (!is_demo) { div.v-layout { overflow: unset !important; } + +.v-card.rounded-lg { + border-radius: 12px !important; +} diff --git a/photon-client/src/assets/images/logoSmallTransparent.svg b/photon-client/src/assets/images/logoSmallTransparent.svg new file mode 100644 index 0000000000..8abba5d008 --- /dev/null +++ b/photon-client/src/assets/images/logoSmallTransparent.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/photon-client/src/assets/styles/variables.scss b/photon-client/src/assets/styles/variables.scss index f1181d8c22..e56ad0a3f0 100644 --- a/photon-client/src/assets/styles/variables.scss +++ b/photon-client/src/assets/styles/variables.scss @@ -72,3 +72,7 @@ html { .pa-10px { padding: 10px !important; } + +.rounded-12 { + border-radius: 12px; +} \ No newline at end of file diff --git a/photon-client/src/components/app/photon-sidebar.vue b/photon-client/src/components/app/photon-sidebar.vue index e8e2d619b0..64e3dd247f 100644 --- a/photon-client/src/components/app/photon-sidebar.vue +++ b/photon-client/src/components/app/photon-sidebar.vue @@ -4,7 +4,7 @@ import { useSettingsStore } from "@/stores/settings/GeneralSettingsStore"; import { useStateStore } from "@/stores/StateStore"; import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore"; import { useRoute } from "vue-router"; -import { useDisplay } from "vuetify"; +import { useDisplay, useTheme } from "vuetify"; const compact = computed({ get: () => { @@ -16,17 +16,19 @@ const compact = computed({ }); const { mdAndUp } = useDisplay(); +const theme = useTheme(); + const renderCompact = computed(() => compact.value || !mdAndUp.value);