ywana-core8 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +961 -0
- package/dist/index.js +450 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +450 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +450 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/desktop/AppManager.js +270 -0
- package/src/desktop/ApplicationMenu.css +279 -0
- package/src/desktop/ApplicationMenu.js +214 -0
- package/src/desktop/Desktop.stories.jsx +432 -5
- package/src/desktop/WindowContext.js +1 -0
- package/src/desktop/WindowManager.js +23 -0
- package/src/desktop/desktop-linux.css +232 -0
- package/src/desktop/desktop-macos.css +260 -0
- package/src/desktop/desktop-windows.css +190 -0
- package/src/desktop/desktop.js +131 -33
- package/src/desktop/index.js +5 -1
- package/src/desktop/window.js +9 -2
- package/src/examples/ApplicationMenuExample.js +361 -0
@@ -210,6 +210,29 @@ export class WindowManager {
|
|
210
210
|
return true
|
211
211
|
}
|
212
212
|
|
213
|
+
/**
|
214
|
+
* Update window size
|
215
|
+
*/
|
216
|
+
updateWindowSize(windowId, size) {
|
217
|
+
const window = this.windows.get(windowId)
|
218
|
+
if (!window) return false
|
219
|
+
|
220
|
+
// Ensure minimum size constraints
|
221
|
+
const minWidth = 200
|
222
|
+
const minHeight = 150
|
223
|
+
const maxWidth = this.desktopSize.width
|
224
|
+
const maxHeight = this.desktopSize.height - 50 // Space for taskbar
|
225
|
+
|
226
|
+
const constrainedSize = {
|
227
|
+
width: Math.max(minWidth, Math.min(size.width || window.size.width, maxWidth)),
|
228
|
+
height: Math.max(minHeight, Math.min(size.height || window.size.height, maxHeight))
|
229
|
+
}
|
230
|
+
|
231
|
+
window.size = { ...window.size, ...constrainedSize }
|
232
|
+
this.notifyListeners()
|
233
|
+
return true
|
234
|
+
}
|
235
|
+
|
213
236
|
/**
|
214
237
|
* Get all windows
|
215
238
|
*/
|
@@ -0,0 +1,232 @@
|
|
1
|
+
/* Linux Desktop Theme (GNOME/Ubuntu inspired) */
|
2
|
+
|
3
|
+
.desktop--linux {
|
4
|
+
background: linear-gradient(135deg, #2c001e 0%, #4c2c92 50%, #0e4b99 100%);
|
5
|
+
font-family: 'Ubuntu', 'Cantarell', 'DejaVu Sans', sans-serif;
|
6
|
+
}
|
7
|
+
|
8
|
+
.desktop--linux .desktop__background {
|
9
|
+
background-image:
|
10
|
+
radial-gradient(circle at 30% 70%, rgba(233, 84, 32, 0.2) 0%, transparent 50%),
|
11
|
+
radial-gradient(circle at 70% 30%, rgba(119, 41, 83, 0.3) 0%, transparent 50%),
|
12
|
+
radial-gradient(circle at 50% 50%, rgba(14, 75, 153, 0.2) 0%, transparent 50%);
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Linux-style windows (GNOME) */
|
16
|
+
.desktop--linux .window {
|
17
|
+
border: 1px solid #2d2d2d;
|
18
|
+
border-radius: 12px 12px 0 0;
|
19
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
20
|
+
background: #ffffff;
|
21
|
+
overflow: hidden;
|
22
|
+
}
|
23
|
+
|
24
|
+
.desktop--linux .window__header {
|
25
|
+
background: linear-gradient(180deg, #f6f5f4 0%, #e6e5e4 100%);
|
26
|
+
border-bottom: 1px solid #d0cfce;
|
27
|
+
border-radius: 12px 12px 0 0;
|
28
|
+
height: 38px;
|
29
|
+
padding: 0 16px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.desktop--linux .window__title {
|
33
|
+
font-size: 14px;
|
34
|
+
font-weight: 500;
|
35
|
+
color: #2e3436;
|
36
|
+
}
|
37
|
+
|
38
|
+
.desktop--linux .window__control {
|
39
|
+
width: 24px;
|
40
|
+
height: 24px;
|
41
|
+
border: none;
|
42
|
+
border-radius: 50%;
|
43
|
+
font-size: 12px;
|
44
|
+
color: #2e3436;
|
45
|
+
display: flex;
|
46
|
+
align-items: center;
|
47
|
+
justify-content: center;
|
48
|
+
transition: all 0.2s ease;
|
49
|
+
margin-left: 8px;
|
50
|
+
}
|
51
|
+
|
52
|
+
.desktop--linux .window__control--minimize {
|
53
|
+
background: #f6d32d;
|
54
|
+
border: 1px solid #f5c211;
|
55
|
+
}
|
56
|
+
|
57
|
+
.desktop--linux .window__control--maximize {
|
58
|
+
background: #33d17a;
|
59
|
+
border: 1px solid #2ec27e;
|
60
|
+
}
|
61
|
+
|
62
|
+
.desktop--linux .window__control--close {
|
63
|
+
background: #e01b24;
|
64
|
+
border: 1px solid #c01c28;
|
65
|
+
color: white;
|
66
|
+
}
|
67
|
+
|
68
|
+
.desktop--linux .window__control:hover {
|
69
|
+
transform: scale(1.1);
|
70
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
71
|
+
}
|
72
|
+
|
73
|
+
.desktop--linux .window__control--minimize::before {
|
74
|
+
content: '−';
|
75
|
+
font-weight: bold;
|
76
|
+
}
|
77
|
+
|
78
|
+
.desktop--linux .window__control--maximize::before {
|
79
|
+
content: '□';
|
80
|
+
font-weight: bold;
|
81
|
+
}
|
82
|
+
|
83
|
+
.desktop--linux .window__control--close::before {
|
84
|
+
content: '×';
|
85
|
+
font-weight: bold;
|
86
|
+
}
|
87
|
+
|
88
|
+
/* Linux taskbar styling (GNOME Activities) */
|
89
|
+
.desktop--linux .desktop-taskbar {
|
90
|
+
background: rgba(0, 0, 0, 0.85);
|
91
|
+
backdrop-filter: blur(10px);
|
92
|
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
93
|
+
}
|
94
|
+
|
95
|
+
.desktop--linux .taskbar-button {
|
96
|
+
background: rgba(255, 255, 255, 0.08);
|
97
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
98
|
+
border-radius: 8px;
|
99
|
+
color: #ffffff;
|
100
|
+
font-family: 'Ubuntu', sans-serif;
|
101
|
+
font-size: 13px;
|
102
|
+
font-weight: 400;
|
103
|
+
transition: all 0.3s ease;
|
104
|
+
}
|
105
|
+
|
106
|
+
.desktop--linux .taskbar-button:hover {
|
107
|
+
background: rgba(255, 255, 255, 0.15);
|
108
|
+
border-color: rgba(255, 255, 255, 0.25);
|
109
|
+
transform: translateY(-1px);
|
110
|
+
}
|
111
|
+
|
112
|
+
.desktop--linux .taskbar-button--active {
|
113
|
+
background: rgba(53, 132, 228, 0.3);
|
114
|
+
border-color: rgba(53, 132, 228, 0.5);
|
115
|
+
}
|
116
|
+
|
117
|
+
/* Linux Application Menu (Activities Overview) */
|
118
|
+
.desktop--linux .application-menu {
|
119
|
+
background: rgba(36, 31, 49, 0.95);
|
120
|
+
backdrop-filter: blur(20px);
|
121
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
122
|
+
border-radius: 12px;
|
123
|
+
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
|
124
|
+
color: #ffffff;
|
125
|
+
}
|
126
|
+
|
127
|
+
.desktop--linux .application-menu__header {
|
128
|
+
background: linear-gradient(180deg, rgba(46, 52, 54, 0.8) 0%, rgba(36, 31, 49, 0.8) 100%);
|
129
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
130
|
+
color: #ffffff;
|
131
|
+
}
|
132
|
+
|
133
|
+
.desktop--linux .application-menu__header h2 {
|
134
|
+
color: #ffffff;
|
135
|
+
font-family: 'Ubuntu', sans-serif;
|
136
|
+
font-weight: 500;
|
137
|
+
}
|
138
|
+
|
139
|
+
.desktop--linux .application-menu__close {
|
140
|
+
color: #ffffff;
|
141
|
+
background: rgba(255, 255, 255, 0.1);
|
142
|
+
border-radius: 6px;
|
143
|
+
}
|
144
|
+
|
145
|
+
.desktop--linux .application-menu__close:hover {
|
146
|
+
background: rgba(224, 27, 36, 0.8);
|
147
|
+
}
|
148
|
+
|
149
|
+
.desktop--linux .application-menu__search-input {
|
150
|
+
background: rgba(255, 255, 255, 0.1);
|
151
|
+
border: 2px solid rgba(255, 255, 255, 0.2);
|
152
|
+
border-radius: 8px;
|
153
|
+
color: #ffffff;
|
154
|
+
font-family: 'Ubuntu', sans-serif;
|
155
|
+
}
|
156
|
+
|
157
|
+
.desktop--linux .application-menu__search-input::placeholder {
|
158
|
+
color: rgba(255, 255, 255, 0.6);
|
159
|
+
}
|
160
|
+
|
161
|
+
.desktop--linux .application-menu__search-input:focus {
|
162
|
+
border-color: rgba(53, 132, 228, 0.8);
|
163
|
+
background: rgba(255, 255, 255, 0.15);
|
164
|
+
outline: none;
|
165
|
+
}
|
166
|
+
|
167
|
+
.desktop--linux .application-menu__category {
|
168
|
+
background: rgba(255, 255, 255, 0.1);
|
169
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
170
|
+
border-radius: 20px;
|
171
|
+
color: #ffffff;
|
172
|
+
font-family: 'Ubuntu', sans-serif;
|
173
|
+
font-size: 13px;
|
174
|
+
font-weight: 400;
|
175
|
+
}
|
176
|
+
|
177
|
+
.desktop--linux .application-menu__category:hover {
|
178
|
+
background: rgba(255, 255, 255, 0.2);
|
179
|
+
border-color: rgba(255, 255, 255, 0.3);
|
180
|
+
}
|
181
|
+
|
182
|
+
.desktop--linux .application-menu__category.active {
|
183
|
+
background: rgba(53, 132, 228, 0.8);
|
184
|
+
border-color: rgba(53, 132, 228, 1);
|
185
|
+
color: #ffffff;
|
186
|
+
}
|
187
|
+
|
188
|
+
.desktop--linux .application-menu__app {
|
189
|
+
background: rgba(255, 255, 255, 0.05);
|
190
|
+
border: 1px solid transparent;
|
191
|
+
border-radius: 12px;
|
192
|
+
transition: all 0.2s ease;
|
193
|
+
}
|
194
|
+
|
195
|
+
.desktop--linux .application-menu__app:hover {
|
196
|
+
background: rgba(255, 255, 255, 0.15);
|
197
|
+
border-color: rgba(255, 255, 255, 0.2);
|
198
|
+
transform: translateY(-2px);
|
199
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
200
|
+
}
|
201
|
+
|
202
|
+
.desktop--linux .app-name {
|
203
|
+
font-family: 'Ubuntu', sans-serif;
|
204
|
+
font-size: 13px;
|
205
|
+
font-weight: 400;
|
206
|
+
color: #ffffff;
|
207
|
+
}
|
208
|
+
|
209
|
+
.desktop--linux .category-title {
|
210
|
+
color: #ffffff;
|
211
|
+
font-family: 'Ubuntu', sans-serif;
|
212
|
+
font-weight: 500;
|
213
|
+
}
|
214
|
+
|
215
|
+
/* Linux scrollbar */
|
216
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar {
|
217
|
+
width: 8px;
|
218
|
+
}
|
219
|
+
|
220
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar-track {
|
221
|
+
background: rgba(255, 255, 255, 0.1);
|
222
|
+
border-radius: 4px;
|
223
|
+
}
|
224
|
+
|
225
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar-thumb {
|
226
|
+
background: rgba(255, 255, 255, 0.3);
|
227
|
+
border-radius: 4px;
|
228
|
+
}
|
229
|
+
|
230
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar-thumb:hover {
|
231
|
+
background: rgba(255, 255, 255, 0.5);
|
232
|
+
}
|
@@ -0,0 +1,260 @@
|
|
1
|
+
/* macOS Desktop Theme */
|
2
|
+
|
3
|
+
.desktop--macos {
|
4
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
5
|
+
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
|
6
|
+
}
|
7
|
+
|
8
|
+
.desktop--macos .desktop__background {
|
9
|
+
background-image:
|
10
|
+
radial-gradient(circle at 25% 75%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
|
11
|
+
radial-gradient(circle at 75% 25%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
|
12
|
+
radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
|
13
|
+
}
|
14
|
+
|
15
|
+
/* macOS-style windows */
|
16
|
+
.desktop--macos .window {
|
17
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
18
|
+
border-radius: 12px;
|
19
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
20
|
+
background: rgba(255, 255, 255, 0.95);
|
21
|
+
backdrop-filter: blur(20px);
|
22
|
+
overflow: hidden;
|
23
|
+
}
|
24
|
+
|
25
|
+
.desktop--macos .window__header {
|
26
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 245, 0.8) 100%);
|
27
|
+
backdrop-filter: blur(20px);
|
28
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
29
|
+
border-radius: 12px 12px 0 0;
|
30
|
+
height: 36px;
|
31
|
+
padding: 0 16px;
|
32
|
+
}
|
33
|
+
|
34
|
+
.desktop--macos .window__title {
|
35
|
+
font-size: 13px;
|
36
|
+
font-weight: 600;
|
37
|
+
color: #1d1d1f;
|
38
|
+
text-align: center;
|
39
|
+
}
|
40
|
+
|
41
|
+
.desktop--macos .window__controls {
|
42
|
+
order: -1;
|
43
|
+
margin-right: auto;
|
44
|
+
}
|
45
|
+
|
46
|
+
.desktop--macos .window__control {
|
47
|
+
width: 12px;
|
48
|
+
height: 12px;
|
49
|
+
border: none;
|
50
|
+
border-radius: 50%;
|
51
|
+
font-size: 8px;
|
52
|
+
color: rgba(0, 0, 0, 0.6);
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
justify-content: center;
|
56
|
+
transition: all 0.2s ease;
|
57
|
+
margin-right: 8px;
|
58
|
+
position: relative;
|
59
|
+
}
|
60
|
+
|
61
|
+
.desktop--macos .window__control::before {
|
62
|
+
opacity: 0;
|
63
|
+
transition: opacity 0.2s ease;
|
64
|
+
}
|
65
|
+
|
66
|
+
.desktop--macos .window:hover .window__control::before {
|
67
|
+
opacity: 1;
|
68
|
+
}
|
69
|
+
|
70
|
+
.desktop--macos .window__control--close {
|
71
|
+
background: #ff5f57;
|
72
|
+
border: 0.5px solid #e0443e;
|
73
|
+
}
|
74
|
+
|
75
|
+
.desktop--macos .window__control--minimize {
|
76
|
+
background: #ffbd2e;
|
77
|
+
border: 0.5px solid #dea123;
|
78
|
+
}
|
79
|
+
|
80
|
+
.desktop--macos .window__control--maximize {
|
81
|
+
background: #28ca42;
|
82
|
+
border: 0.5px solid #1aad34;
|
83
|
+
}
|
84
|
+
|
85
|
+
.desktop--macos .window__control:hover {
|
86
|
+
transform: scale(1.1);
|
87
|
+
}
|
88
|
+
|
89
|
+
.desktop--macos .window__control--close::before {
|
90
|
+
content: '×';
|
91
|
+
font-weight: bold;
|
92
|
+
font-size: 10px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.desktop--macos .window__control--minimize::before {
|
96
|
+
content: '−';
|
97
|
+
font-weight: bold;
|
98
|
+
font-size: 8px;
|
99
|
+
}
|
100
|
+
|
101
|
+
.desktop--macos .window__control--maximize::before {
|
102
|
+
content: '+';
|
103
|
+
font-weight: bold;
|
104
|
+
font-size: 8px;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* macOS taskbar styling (Dock-inspired) */
|
108
|
+
.desktop--macos .desktop-taskbar {
|
109
|
+
background: rgba(255, 255, 255, 0.8);
|
110
|
+
backdrop-filter: blur(20px);
|
111
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
112
|
+
border-radius: 16px 16px 0 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
.desktop--macos .taskbar-button {
|
116
|
+
background: rgba(0, 0, 0, 0.05);
|
117
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
118
|
+
border-radius: 12px;
|
119
|
+
color: #1d1d1f;
|
120
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
121
|
+
font-size: 13px;
|
122
|
+
font-weight: 500;
|
123
|
+
transition: all 0.3s ease;
|
124
|
+
backdrop-filter: blur(10px);
|
125
|
+
}
|
126
|
+
|
127
|
+
.desktop--macos .taskbar-button:hover {
|
128
|
+
background: rgba(0, 0, 0, 0.1);
|
129
|
+
border-color: rgba(0, 0, 0, 0.2);
|
130
|
+
transform: translateY(-2px);
|
131
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
132
|
+
}
|
133
|
+
|
134
|
+
.desktop--macos .taskbar-button--active {
|
135
|
+
background: rgba(0, 122, 255, 0.15);
|
136
|
+
border-color: rgba(0, 122, 255, 0.3);
|
137
|
+
color: #007aff;
|
138
|
+
}
|
139
|
+
|
140
|
+
/* macOS Application Menu (Launchpad-inspired) */
|
141
|
+
.desktop--macos .application-menu {
|
142
|
+
background: rgba(255, 255, 255, 0.9);
|
143
|
+
backdrop-filter: blur(40px);
|
144
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
145
|
+
border-radius: 20px;
|
146
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
147
|
+
}
|
148
|
+
|
149
|
+
.desktop--macos .application-menu__header {
|
150
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 248, 248, 0.8) 100%);
|
151
|
+
backdrop-filter: blur(20px);
|
152
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
153
|
+
border-radius: 20px 20px 0 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
.desktop--macos .application-menu__header h2 {
|
157
|
+
color: #1d1d1f;
|
158
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
159
|
+
font-weight: 600;
|
160
|
+
font-size: 20px;
|
161
|
+
}
|
162
|
+
|
163
|
+
.desktop--macos .application-menu__close {
|
164
|
+
color: #8e8e93;
|
165
|
+
background: rgba(0, 0, 0, 0.05);
|
166
|
+
border-radius: 8px;
|
167
|
+
font-size: 18px;
|
168
|
+
}
|
169
|
+
|
170
|
+
.desktop--macos .application-menu__close:hover {
|
171
|
+
background: rgba(255, 95, 87, 0.8);
|
172
|
+
color: white;
|
173
|
+
}
|
174
|
+
|
175
|
+
.desktop--macos .application-menu__search-input {
|
176
|
+
background: rgba(0, 0, 0, 0.05);
|
177
|
+
border: 2px solid rgba(0, 0, 0, 0.1);
|
178
|
+
border-radius: 12px;
|
179
|
+
color: #1d1d1f;
|
180
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
181
|
+
font-size: 15px;
|
182
|
+
}
|
183
|
+
|
184
|
+
.desktop--macos .application-menu__search-input::placeholder {
|
185
|
+
color: #8e8e93;
|
186
|
+
}
|
187
|
+
|
188
|
+
.desktop--macos .application-menu__search-input:focus {
|
189
|
+
border-color: rgba(0, 122, 255, 0.8);
|
190
|
+
background: rgba(255, 255, 255, 0.8);
|
191
|
+
outline: none;
|
192
|
+
box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
|
193
|
+
}
|
194
|
+
|
195
|
+
.desktop--macos .application-menu__category {
|
196
|
+
background: rgba(0, 0, 0, 0.05);
|
197
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
198
|
+
border-radius: 20px;
|
199
|
+
color: #1d1d1f;
|
200
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
201
|
+
font-size: 13px;
|
202
|
+
font-weight: 500;
|
203
|
+
}
|
204
|
+
|
205
|
+
.desktop--macos .application-menu__category:hover {
|
206
|
+
background: rgba(0, 0, 0, 0.1);
|
207
|
+
border-color: rgba(0, 0, 0, 0.2);
|
208
|
+
}
|
209
|
+
|
210
|
+
.desktop--macos .application-menu__category.active {
|
211
|
+
background: rgba(0, 122, 255, 0.8);
|
212
|
+
border-color: rgba(0, 122, 255, 1);
|
213
|
+
color: white;
|
214
|
+
}
|
215
|
+
|
216
|
+
.desktop--macos .application-menu__app {
|
217
|
+
background: rgba(255, 255, 255, 0.6);
|
218
|
+
border: 1px solid transparent;
|
219
|
+
border-radius: 16px;
|
220
|
+
transition: all 0.3s ease;
|
221
|
+
backdrop-filter: blur(10px);
|
222
|
+
}
|
223
|
+
|
224
|
+
.desktop--macos .application-menu__app:hover {
|
225
|
+
background: rgba(255, 255, 255, 0.8);
|
226
|
+
border-color: rgba(0, 0, 0, 0.1);
|
227
|
+
transform: translateY(-4px) scale(1.05);
|
228
|
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
229
|
+
}
|
230
|
+
|
231
|
+
.desktop--macos .app-name {
|
232
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
233
|
+
font-size: 12px;
|
234
|
+
font-weight: 500;
|
235
|
+
color: #1d1d1f;
|
236
|
+
}
|
237
|
+
|
238
|
+
.desktop--macos .category-title {
|
239
|
+
color: #1d1d1f;
|
240
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
241
|
+
font-weight: 600;
|
242
|
+
}
|
243
|
+
|
244
|
+
/* macOS scrollbar */
|
245
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar {
|
246
|
+
width: 6px;
|
247
|
+
}
|
248
|
+
|
249
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar-track {
|
250
|
+
background: transparent;
|
251
|
+
}
|
252
|
+
|
253
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar-thumb {
|
254
|
+
background: rgba(0, 0, 0, 0.2);
|
255
|
+
border-radius: 3px;
|
256
|
+
}
|
257
|
+
|
258
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar-thumb:hover {
|
259
|
+
background: rgba(0, 0, 0, 0.4);
|
260
|
+
}
|
@@ -0,0 +1,190 @@
|
|
1
|
+
/* Windows Desktop Theme */
|
2
|
+
|
3
|
+
.desktop--windows {
|
4
|
+
background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
|
5
|
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
6
|
+
}
|
7
|
+
|
8
|
+
.desktop--windows .desktop__background {
|
9
|
+
background-image:
|
10
|
+
radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
|
11
|
+
radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
|
12
|
+
radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.15) 0%, transparent 50%);
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Windows-style taskbar */
|
16
|
+
.desktop--windows .window {
|
17
|
+
border: 1px solid #cccccc;
|
18
|
+
border-radius: 8px;
|
19
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
20
|
+
background: #ffffff;
|
21
|
+
}
|
22
|
+
|
23
|
+
.desktop--windows .window__header {
|
24
|
+
background: linear-gradient(180deg, #f0f0f0 0%, #e5e5e5 100%);
|
25
|
+
border-bottom: 1px solid #d0d0d0;
|
26
|
+
border-radius: 8px 8px 0 0;
|
27
|
+
height: 32px;
|
28
|
+
padding: 0 12px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.desktop--windows .window__title {
|
32
|
+
font-size: 13px;
|
33
|
+
font-weight: 400;
|
34
|
+
color: #333333;
|
35
|
+
}
|
36
|
+
|
37
|
+
.desktop--windows .window__control {
|
38
|
+
width: 46px;
|
39
|
+
height: 32px;
|
40
|
+
border: none;
|
41
|
+
background: transparent;
|
42
|
+
font-size: 10px;
|
43
|
+
font-family: 'Segoe MDL2 Assets', 'Segoe UI Symbol', sans-serif;
|
44
|
+
color: #333333;
|
45
|
+
display: flex;
|
46
|
+
align-items: center;
|
47
|
+
justify-content: center;
|
48
|
+
transition: background-color 0.1s ease;
|
49
|
+
}
|
50
|
+
|
51
|
+
.desktop--windows .window__control:hover {
|
52
|
+
background: rgba(0, 0, 0, 0.1);
|
53
|
+
}
|
54
|
+
|
55
|
+
.desktop--windows .window__control--minimize:hover {
|
56
|
+
background: #e5e5e5;
|
57
|
+
}
|
58
|
+
|
59
|
+
.desktop--windows .window__control--maximize:hover {
|
60
|
+
background: #e5e5e5;
|
61
|
+
}
|
62
|
+
|
63
|
+
.desktop--windows .window__control--close:hover {
|
64
|
+
background: #e81123;
|
65
|
+
color: white;
|
66
|
+
}
|
67
|
+
|
68
|
+
.desktop--windows .window__control--minimize::before {
|
69
|
+
content: '🗕';
|
70
|
+
}
|
71
|
+
|
72
|
+
.desktop--windows .window__control--maximize::before {
|
73
|
+
content: '🗖';
|
74
|
+
}
|
75
|
+
|
76
|
+
.desktop--windows .window__control--close::before {
|
77
|
+
content: '🗙';
|
78
|
+
}
|
79
|
+
|
80
|
+
/* Windows taskbar styling */
|
81
|
+
.desktop--windows .desktop-taskbar {
|
82
|
+
background: rgba(0, 0, 0, 0.8);
|
83
|
+
backdrop-filter: blur(20px);
|
84
|
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
85
|
+
}
|
86
|
+
|
87
|
+
.desktop--windows .taskbar-button {
|
88
|
+
background: rgba(255, 255, 255, 0.1);
|
89
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
90
|
+
border-radius: 4px;
|
91
|
+
color: white;
|
92
|
+
font-family: 'Segoe UI', sans-serif;
|
93
|
+
font-size: 14px;
|
94
|
+
transition: all 0.2s ease;
|
95
|
+
}
|
96
|
+
|
97
|
+
.desktop--windows .taskbar-button:hover {
|
98
|
+
background: rgba(255, 255, 255, 0.2);
|
99
|
+
border-color: rgba(255, 255, 255, 0.3);
|
100
|
+
}
|
101
|
+
|
102
|
+
.desktop--windows .taskbar-button--active {
|
103
|
+
background: rgba(255, 255, 255, 0.25);
|
104
|
+
border-color: rgba(255, 255, 255, 0.4);
|
105
|
+
}
|
106
|
+
|
107
|
+
/* Windows Application Menu */
|
108
|
+
.desktop--windows .application-menu {
|
109
|
+
background: rgba(248, 248, 248, 0.95);
|
110
|
+
backdrop-filter: blur(20px);
|
111
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
112
|
+
border-radius: 8px;
|
113
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
114
|
+
}
|
115
|
+
|
116
|
+
.desktop--windows .application-menu__header {
|
117
|
+
background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
|
118
|
+
border-bottom: 1px solid #d0d0d0;
|
119
|
+
}
|
120
|
+
|
121
|
+
.desktop--windows .application-menu__search-input {
|
122
|
+
border: 2px solid #e0e0e0;
|
123
|
+
border-radius: 4px;
|
124
|
+
font-family: 'Segoe UI', sans-serif;
|
125
|
+
}
|
126
|
+
|
127
|
+
.desktop--windows .application-menu__search-input:focus {
|
128
|
+
border-color: #0078d4;
|
129
|
+
outline: none;
|
130
|
+
}
|
131
|
+
|
132
|
+
.desktop--windows .application-menu__category {
|
133
|
+
background: #ffffff;
|
134
|
+
border: 1px solid #e0e0e0;
|
135
|
+
border-radius: 16px;
|
136
|
+
font-family: 'Segoe UI', sans-serif;
|
137
|
+
font-size: 13px;
|
138
|
+
}
|
139
|
+
|
140
|
+
.desktop--windows .application-menu__category:hover {
|
141
|
+
background: #f5f5f5;
|
142
|
+
border-color: #d0d0d0;
|
143
|
+
}
|
144
|
+
|
145
|
+
.desktop--windows .application-menu__category.active {
|
146
|
+
background: #0078d4;
|
147
|
+
border-color: #0078d4;
|
148
|
+
color: white;
|
149
|
+
}
|
150
|
+
|
151
|
+
.desktop--windows .application-menu__app {
|
152
|
+
background: #ffffff;
|
153
|
+
border: 1px solid transparent;
|
154
|
+
border-radius: 8px;
|
155
|
+
transition: all 0.15s ease;
|
156
|
+
}
|
157
|
+
|
158
|
+
.desktop--windows .application-menu__app:hover {
|
159
|
+
background: #f5f5f5;
|
160
|
+
border-color: #e0e0e0;
|
161
|
+
transform: translateY(-1px);
|
162
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
163
|
+
}
|
164
|
+
|
165
|
+
.desktop--windows .app-name {
|
166
|
+
font-family: 'Segoe UI', sans-serif;
|
167
|
+
font-size: 13px;
|
168
|
+
font-weight: 400;
|
169
|
+
color: #333333;
|
170
|
+
}
|
171
|
+
|
172
|
+
/* Windows scrollbar */
|
173
|
+
.desktop--windows .application-menu__content::-webkit-scrollbar {
|
174
|
+
width: 12px;
|
175
|
+
}
|
176
|
+
|
177
|
+
.desktop--windows .application-menu__content::-webkit-scrollbar-track {
|
178
|
+
background: #f1f1f1;
|
179
|
+
border-radius: 6px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.desktop--windows .application-menu__content::-webkit-scrollbar-thumb {
|
183
|
+
background: #c1c1c1;
|
184
|
+
border-radius: 6px;
|
185
|
+
border: 2px solid #f1f1f1;
|
186
|
+
}
|
187
|
+
|
188
|
+
.desktop--windows .application-menu__content::-webkit-scrollbar-thumb:hover {
|
189
|
+
background: #a8a8a8;
|
190
|
+
}
|