chore(lefthook): test clang format

This commit is contained in:
Lemmy
2026-04-04 08:58:14 -04:00
parent b62002f05f
commit 168c936ca9
4 changed files with 10 additions and 6 deletions
+4
View File
@@ -0,0 +1,4 @@
pre-commit:
jobs:
- name: clang-format
run: cd "$(git rev-parse --show-toplevel)" && just format && git update-index --again
+2 -2
View File
@@ -11,8 +11,8 @@
#include "shell/widgets/WorkspacesWidget.h"
WidgetFactory::WidgetFactory(WaylandConnection& wayland, TimeService* time, const Config& config,
NotificationManager* notifications, TrayService* tray)
: m_wayland(wayland), m_time(time), m_config(config), m_notifications(notifications), m_tray(tray) {}
NotificationManager* notifications, TrayService* tray)
: m_wayland(wayland), m_time(time), m_config(config), m_notifications(notifications), m_tray(tray) {}
std::unique_ptr<Widget> WidgetFactory::create(const std::string& name, wl_output* output) const {
if (name == "clock") {
+2 -2
View File
@@ -14,8 +14,8 @@ class WaylandConnection;
class WidgetFactory {
public:
WidgetFactory(WaylandConnection& wayland, TimeService* time, const Config& config,
NotificationManager* notifications, TrayService* tray);
WidgetFactory(WaylandConnection& wayland, TimeService* time, const Config& config, NotificationManager* notifications,
TrayService* tray);
[[nodiscard]] std::unique_ptr<Widget> create(const std::string& name, wl_output* output) const;
+2 -2
View File
@@ -6,8 +6,8 @@
class Label;
// Compact label + rounded fill for inline chips (e.g. workspace). Not a Button — no
// pointer/press semantics; chrome matches borderless shadcn-style chips.
// Compact label + rounded fill for inline chips (e.g. workspace).
// Not a Button — no pointer/press semantics
class Chip : public Box {
public:
Chip();