From adee39bf481bd0382ce83bc25474fb6c3dae8e3a Mon Sep 17 00:00:00 2001 From: Lemmy Date: Sat, 9 May 2026 09:45:15 -0400 Subject: [PATCH] cc: dashboard => home --- assets/translations/en.json | 12 +- meson.build | 2 +- src/shell/bar/bar.cpp | 4 +- .../bar/widgets/control_center_widget.cpp | 3 +- .../control_center/control_center_panel.cpp | 10 +- .../control_center/control_center_panel.h | 8 +- .../{dashboard_tab.cpp => home_tab.cpp} | 118 +++++++++--------- .../{dashboard_tab.h => home_tab.h} | 13 +- src/shell/settings/settings_registry.cpp | 4 +- 9 files changed, 86 insertions(+), 88 deletions(-) rename src/shell/control_center/{dashboard_tab.cpp => home_tab.cpp} (89%) rename src/shell/control_center/{dashboard_tab.h => home_tab.h} (83%) diff --git a/assets/translations/en.json b/assets/translations/en.json index d4ba370eb..113f3fc70 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -140,7 +140,7 @@ }, "control-center": { "tabs": { - "dashboard": "Dashboard", + "home": "Home", "media": "Media", "audio": "Audio", "display": "Display", @@ -151,7 +151,7 @@ "calendar": "Calendar", "notifications": "Notifications" }, - "dashboard": { + "home": { "sections": { "today": "Today", "now-playing": "Now playing", @@ -742,7 +742,7 @@ "network": "Network", "night-light": "Night Light", "osd": "OSD", - "dashboard": "Dashboard", + "home": "Home", "pinned-apps": "Pinned Apps", "profile": "Profile", "power": "Power", @@ -1347,9 +1347,9 @@ } }, "panels": { - "dashboard-shortcuts": { - "label": "Dashboard Shortcuts", - "description": "Choose up to six shortcut buttons for the dashboard tab" + "home-shortcuts": { + "label": "Home Shortcuts", + "description": "Choose up to six shortcut buttons for the home tab" }, "attach-control-center": { "label": "Attach to Bar", diff --git a/meson.build b/meson.build index 0834f7fa8..fac39c384 100644 --- a/meson.build +++ b/meson.build @@ -438,7 +438,7 @@ _noctalia_sources = files( 'src/shell/control_center/media_tab.cpp', 'src/shell/control_center/network_tab.cpp', 'src/shell/control_center/notifications_tab.cpp', - 'src/shell/control_center/dashboard_tab.cpp', + 'src/shell/control_center/home_tab.cpp', 'src/shell/control_center/shortcut_registry.cpp', 'src/shell/control_center/system_tab.cpp', 'src/shell/control_center/tab.cpp', diff --git a/src/shell/bar/bar.cpp b/src/shell/bar/bar.cpp index 392782f5d..d5c47e2a0 100644 --- a/src/shell/bar/bar.cpp +++ b/src/shell/bar/bar.cpp @@ -1743,7 +1743,7 @@ bool Bar::onPointerEvent(const PointerEvent& event) { panelManager.closePanel(); } else { panelManager.openPanel("control-center", PanelOpenRequest{.output = targetInstance->output, - .context = "dashboard", + .context = "home", .sourceBarName = targetInstance->barConfig.name}); } return true; @@ -1824,7 +1824,7 @@ bool Bar::onPointerEvent(const PointerEvent& event) { } else { panelManager.openPanel("control-center", PanelOpenRequest{.output = m_hoveredInstance->output, - .context = "dashboard", + .context = "home", .sourceBarName = m_hoveredInstance->barConfig.name}); } consumed = true; diff --git a/src/shell/bar/widgets/control_center_widget.cpp b/src/shell/bar/widgets/control_center_widget.cpp index e14c724f7..2e47b2949 100644 --- a/src/shell/bar/widgets/control_center_widget.cpp +++ b/src/shell/bar/widgets/control_center_widget.cpp @@ -15,8 +15,7 @@ ControlCenterWidget::ControlCenterWidget(wl_output* output, std::string barGlyph void ControlCenterWidget::create() { auto area = std::make_unique(); - area->setOnClick( - [this](const InputArea::PointerData& /*data*/) { requestPanelToggle("control-center", "dashboard"); }); + area->setOnClick([this](const InputArea::PointerData& /*data*/) { requestPanelToggle("control-center", "home"); }); if (!m_logoPath.empty()) { auto image = std::make_unique(); diff --git a/src/shell/control_center/control_center_panel.cpp b/src/shell/control_center/control_center_panel.cpp index e483a8910..6da17d993 100644 --- a/src/shell/control_center/control_center_panel.cpp +++ b/src/shell/control_center/control_center_panel.cpp @@ -26,9 +26,9 @@ ControlCenterPanel::ControlCenterPanel( m_config = config; m_notificationManager = notifications; m_dependencies = dependencies; - m_tabs[tabIndex(TabId::Dashboard)] = - std::make_unique(mpris, weather, audio, powerProfiles, config, network, bluetooth, nightLight, - theme, notifications, idleInhibitor, dependencies, wayland, wallpaper); + m_tabs[tabIndex(TabId::Home)] = + std::make_unique(mpris, weather, audio, powerProfiles, config, network, bluetooth, nightLight, theme, + notifications, idleInhibitor, dependencies, wayland, wallpaper); m_tabs[tabIndex(TabId::Media)] = std::make_unique(mpris, httpClient, spectrum, wayland, PanelManager::instance().renderContext()); m_tabs[tabIndex(TabId::Audio)] = @@ -127,7 +127,7 @@ void ControlCenterPanel::create() { m_contentHeader = header.get(); auto title = std::make_unique