✨ feat: implement core functionality and UI for Modus shell

This commit is contained in:
sankalp committed 2025-07-30 09:28:32 +05:45
1 parent f51f051336
commit 5582af2a33
129 files changed
+33424 -226

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
:vars {
--foreground: #e3e1e9;
--background: #121318;
--cursor: #e3e1e9;
--primary: #bac3ff;
--on-primary: #222c61;
--secondary: #c3c5dd;
--on-secondary: #2c2f42;
--tertiary: #e5bad8;
--on-tertiary: #44263e;
--surface: #121318;
--surface-bright: #38393f;
--error: #ffb4ab;
--error-dim: #ff8678;
--on-error: #690005;
--error-container: #93000a;
--outline: #90909a;
--shadow: #000000;
--red: #ffb2b9;
--red-dim: #ff7f8b;
--green: #95d5a7;
--green-dim: #70c789;
--yellow: #b8cf84;
--yellow-dim: #a3c15f;
--blue: #bcc2ff;
--blue-dim: #8994ff;
--magenta: #e4b7f3;
--magenta-dim: #d48bec;
--cyan: #82d3e2;
--cyan-dim: #59c4d8;
--white: #82d3e0;
}
+77
View File
@@ -0,0 +1,77 @@
#dock {
background-color: alpha(var(--shadow), 0.4);
padding: 8px;
margin: 8px 8px 5px 8px;
border-radius: 16px;
/* border: 2px solid var(--surface); */
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#dock.vertical {
margin: 8px 0 8px 8px;
border-radius: 20px 0 0 20px;
}
#dock.vertical.left {
margin: 8px 8px 8px 0;
border-radius: 0 20px 20px 0;
}
#dock-full {
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
opacity: 1;
}
#dock-separator {
padding: 2px;
border-radius: 16px;
background-color: var(--surface-bright);
}
#dock-app-button {
padding: 4px;
border-radius: 24px;
/* box-shadow: 0 0 4px alpha(var(--shadow), 0.5); */
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#dock-app-button:hover {
background-color: var(--surface-bright);
}
#dock-app-button:hover.instance {
background-color: var(--outline);
}
#dock-app-button:active,
#dock-app-button:active.instance {
background-color: var(--primary);
}
#dock-app-button.instance {
border-radius: 12px;
}
#dock-app-dot {
background-color: var(--primary);
border-radius: 50%;
margin-top: 4px;
min-width: 4px;
min-height: 4px;
}
#dock-corner-left {
margin: 0 -8px 0 0;
}
#dock-corner-right {
margin: 0 0 0 -8px;
}
#dock-corner-top {
margin: 0 0 -8px 0;
}
#dock-corner-bottom {
margin: -8px 0 0 0;
}
+176
View File
@@ -0,0 +1,176 @@
#launcher {
background: var(--shadow);
padding: 12px;
border-radius: 34px;
min-width: 550px;
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#close-button,
#config-button {
background-color: var(--surface);
border-radius: 40px;
padding: 8px;
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#close-button:hover,
#close-button:focus,
#config-button:hover,
#config-button:focus {
background-color: var(--surface-bright);
border-radius: 16px;
}
#close-button.focused,
#config-button.focused {
background-color: var(--primary);
border-radius: 16px;
box-shadow: 0 0 0 2px var(--primary-bright);
}
#close-button.focused #close-label {
color: var(--background);
}
#config-button.focused #config-label {
color: var(--background);
}
#close-button:active {
background-color: var(--red-dim);
border-radius: 40px;
}
#close-label {
color: var(--red-dim);
font-size: 24px;
}
#close-button:active #close-label {
color: var(--shadow);
}
#config-button:active {
background-color: var(--primary);
border-radius: 40px;
}
#config-label {
color: var(--primary);
font-size: 24px;
}
#config-button:active #config-label {
color: var(--shadow);
}
#launcher-icon-label {
font-size: 32px;
padding: 8px;
}
#launcher-search {
font-weight: bold;
background-color: var(--surface);
color: var(--foreground);
border-radius: 16px;
padding: 10px;
}
#launcher-search selection {
color: var(--background);
background-color: var(--primary);
}
#launcher-results-scroll {
margin-top: 10px;
border-radius: 16px;
}
#launcher-results-scroll scrollbar {
border-radius: 10px;
background-color: var(--surface);
padding: 4px;
margin-left: 6px;
}
#launcher-results-scroll slider {
border-radius: 8px;
min-width: 10px;
min-height: 38px;
background-color: var(--primary);
}
#launcher-results {
background: transparent;
}
#launcher-result-item {
border-radius: 40px;
padding: 0 16px;
animation: loadSlot 0.5s ease;
min-height: 52px;
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes loadSlot {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#launcher-result-item:focus,
#launcher-result-item:selected,
#launcher-result-item:hover,
#launcher-result-item.selected {
border-radius: 16px;
background-color: var(--surface);
padding-left: 20px;
}
#result-item-main {
min-height: 48px;
}
#launcher-result-item {
min-height: 48px;
}
#result-item-icon {
min-width: 48px;
min-height: 48px;
margin-right: 12px;
}
#result-item-title {
font-size: 14px;
font-weight: 600;
color: var(--foreground);
margin-top: 8px;
margin-bottom: 2px;
}
#result-item-subtitle {
font-size: 12px;
color: var(--outline);
margin-bottom: 8px;
}
#result-item-plugin {
font-size: 10px;
color: var(--outline);
font-style: italic;
margin-bottom: 8px;
opacity: 0.7;
}
#network-password-entry {
border: 1px solid var(--outline);
padding: 8px;
border-radius: 8px;
margin-bottom: 4px;
}
+21
View File
@@ -0,0 +1,21 @@
#menu-separator {
color: red;
}
#dropdown-content {
background-color: var(--shadow);
border-radius: 8px;
}
#dropdown-label {
margin-left: 10px;
padding: 4px;
}
#dropdown-item {
border-radius: 4px;
}
#dropdown-item:hover {
background-color: var(--surface-bright);
}
+73
View File
@@ -0,0 +1,73 @@
#panel {
background-color: alpha(var(--surface), 0.6);
}
#panel-icon {
font-size: 18px;
}
#panel-button {
border-radius: 8px;
margin: 0 4px 0 6px;
min-width: 20px;
min-height: 20px;
}
#panel-button:hover {
background-color: var(--surface-bright);
}
#tray-button {
border-radius: 8px;
margin: 0 4px 0 0px;
min-width: 20px;
min-height: 20px;
}
#tray-button:hover {
background-color: var(--surface-bright);
}
#date-time {
margin-right: 6px;
}
#modules-left,
#modules-right {
margin: 0 5px;
padding: 3px 0;
}
#notch-spot {
background-color: var(--surface);
}
#indicators-icon {
font-size: 20px;
}
#bt-icon {
font-size: 18px;
}
#indicators {
margin: 0 8px;
}
#indicators-icon.alert {
color: var(--red-dim);
}
#menubar-button {
margin: 0 2px;
border-radius: 4px;
padding: 0 6px;
}
#menubar-button:hover {
background-color: var(--surface-bright);
}
#activewindow-label {
font-weight: bold;
}
+39
View File
@@ -0,0 +1,39 @@
#application-switcher-container {
background: var(--shadow);
border-radius: 16px;
}
#application-switcher-view {
min-height: 120px;
padding: 4px;
}
#switcher-button {
padding: 4px;
min-width: 100px;
border-radius: 16px;
}
#window-button {
background-color: var(--surface);
border-radius: 16px;
}
#switcher-button:hover {
background-color: var(--surface);
}
#window-button.active {
background-color: var(--surface-bright);
border: 3px solid var(--surface-bright);
}
#switcher-button label {
color: var(--foreground);
font-size: 10px;
margin-top: 4px;
}
#window-row {
padding: 18px;
}