Skip to content

Commit a174d18

Browse files
Native dialog windows (#455)
* added optional parameter to all windows * Refactor Modals for electron, iframe and browser * moved to calling symbols instead of events. Adapted a few boxes * minor bug fixes. First test worked * moved all modals to new API * notifications improved * native dropdown menu * native sidebar menu * added context menu option for messagebox * changed windows top menu to context-like * fixed windows bugs menu * added accelerators * added accelerators * added expert mode for inspect context menu * "Client" removed * minor fix debugger * fix unicode characters in json (fuck wolfram) * pass cached clients to top bar extensions * url decode, unicode fixes * minor changes * context menu * version up * fix settings issue on windows * removed radio styling and checkboxes * system colors * provided system color * system color customization * fine icon & rendering api * default accent color * dragging regions * Upgrade electron version to ^39.0.0 * provide modals channel to windows * bg-sys-25 * iframeQ bug fix * fixed icon * mr-auto * autotests fix * color fix * added licenses * clean up * added license text to stating sequence * style fixes * licenses * Linux UI fixes * avoid black * added min height * added flatpack * fix flatpack * qfix for arm * switched to snap * snapcraft * Remove 'sudo' from snapcraft installation command * Add Snapcraft installation to build-linux.yml Added installation steps for Snapcraft in the build workflow. * Remove 'sudo' from Snapcraft installation commands * Fix installation steps for Snapcraft in workflow * autoselect kernel * switched to apimage * fix border styles for Linux * update borders * dark mode polished * fixed win11 * material for launcher win11 * update builder * added picture --------- Co-authored-by: [email protected] <[email protected]>
1 parent 3db7c90 commit a174d18

File tree

117 files changed

+76079
-2979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+76079
-2979
lines changed

.github/workflows/build-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ jobs:
162162
- name: Build electron
163163
env:
164164
GH_TOKEN: ${{ secrets.GH_TOKEN }}
165-
run: npm run dist-linux
165+
run: npm run dist-linux

Assets/Fonts/DejaVuSansCode.ttf

-342 KB
Binary file not shown.

Assets/Fonts/Monoid Regular.ttf

-248 KB
Binary file not shown.

Assets/Fonts/SFMonoRegular.woff

-60 KB
Binary file not shown.

Assets/Styles/Custom.css

Lines changed: 78 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ input::selection {
126126

127127
@media (min-width: 768px) {
128128
.md\:-ml-70 {
129-
margin-left: -16rem !important;
129+
margin-left: calc(-1 * var(--system-main-padding-left)) !important;
130130
}
131131

132132
}
@@ -217,14 +217,17 @@ input::selection {
217217

218218
.h-titlebar {
219219
height: env(titlebar-area-height) !important;
220+
min-height: 32px;
220221
}
221222

222223
[os="Windows"] .win\:h-titlebar {
223224
height: env(titlebar-area-height) !important;
225+
min-height: 32px;
224226
}
225227

226228
[os="WindowsLegacy"] .owin\:h-titlebar {
227229
height: env(titlebar-area-height) !important;
230+
min-height: 32px;
228231
}
229232

230233
[os="Windows"] .win\:sc-b {
@@ -321,6 +324,7 @@ input::selection {
321324

322325
[os="Unix"] .linux\:h-titlebar {
323326
height: env(titlebar-area-height) !important;
327+
min-height: 38px;
324328
}
325329

326330
[os="Windows"] .win\:pt-fix {
@@ -396,18 +400,89 @@ input::selection {
396400
display:none
397401
}
398402

403+
[os="Unix"] .linux\:autohide {
404+
display:none
405+
}
406+
407+
[os="Unix"] .osx\:border-b {
408+
border-bottom-width: 1px;
409+
}
410+
411+
[os="WindowsLegacy"] .osx\:border-b {
412+
border-bottom-width: 1px;
413+
}
414+
415+
[os="Unix"] .osx\:border-r {
416+
border-right-width: 1px;
417+
}
418+
419+
[os="WindowsLegacy"] .osx\:border-r {
420+
border-right-width: 1px;
421+
}
422+
399423
[os="Windows"] .win\:barfix {
400424
padding-top:0 !important;
401425
margin-top: 0.25rem !important;
402426
}
403427

428+
[os="Unix"] .linux\:barfix {
429+
padding-top: 0.5rem !important;
430+
}
431+
404432
[os="WindowsLegacy"] .owin\:barfix {
405-
padding-top:0 !important;
406-
margin-top: 0.25rem !important;
433+
padding-top: 0.25rem !important;
434+
}
435+
436+
[os="Unix"] .owin\:border {
437+
border-width: 1px;
438+
}
439+
440+
[os="Unix"] .owin\:border-slate-400 {
441+
--tw-border-opacity: 1;
442+
border-color: rgb(148 163 184 / var(--tw-border-opacity));
407443
}
408444

409445
@media (min-width: 768px) {
410446
[os="Windows"] .win\:autohide {
411447
display:inline-block
412448
}
449+
450+
[os="Unix"] .linux\:autohide {
451+
display:inline-block
452+
}
453+
}
454+
455+
.native {
456+
all: revert;
457+
appearance: auto;
458+
}
459+
460+
461+
.bg-sys {
462+
background: var(--system-accent-color);
463+
}
464+
465+
.bg-sys-25 {
466+
background-color: var(--system-accent-color-25);
467+
}
468+
469+
.hover\:bg-sys:hover {
470+
background: var(--system-accent-color);
471+
}
472+
473+
.text-sys {
474+
color: var(--system-accent-color);
475+
}
476+
477+
.fill-sys {
478+
fill: var(--system-accent-color);
479+
}
480+
481+
.focus\:ring-sys:focus {
482+
--tw-ring-opacity: 1;
483+
--tw-ring-color: var(--system-accent-color);
484+
}
485+
486+
.focus\:bg-sys-25:focus {
487+
background-color: var(--system-accent-color-25);
413488
}

Assets/Styles/Optimized.css

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -524,108 +524,6 @@ select {
524524
print-color-adjust: unset;
525525
}
526526

527-
[type='checkbox'],[type='radio'] {
528-
-webkit-appearance: none;
529-
-moz-appearance: none;
530-
appearance: none;
531-
padding: 0;
532-
-webkit-print-color-adjust: exact;
533-
print-color-adjust: exact;
534-
display: inline-block;
535-
vertical-align: middle;
536-
background-origin: border-box;
537-
-webkit-user-select: none;
538-
-moz-user-select: none;
539-
user-select: none;
540-
flex-shrink: 0;
541-
height: 1rem;
542-
width: 1rem;
543-
color: #2563eb;
544-
background-color: #fff;
545-
border-color: #6b7280;
546-
border-width: 1px;
547-
--tw-shadow: 0 0 #0000;
548-
}
549-
550-
[type='checkbox'] {
551-
border-radius: 0px;
552-
}
553-
554-
[type='radio'] {
555-
border-radius: 100%;
556-
}
557-
558-
[type='checkbox']:focus,[type='radio']:focus {
559-
outline: 2px solid transparent;
560-
outline-offset: 2px;
561-
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
562-
--tw-ring-offset-width: 2px;
563-
--tw-ring-offset-color: #fff;
564-
--tw-ring-color: #2563eb;
565-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
566-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
567-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
568-
}
569-
570-
[type='checkbox']:checked,[type='radio']:checked {
571-
border-color: transparent;
572-
background-color: currentColor;
573-
background-size: 100% 100%;
574-
background-position: center;
575-
background-repeat: no-repeat;
576-
}
577-
578-
[type='checkbox']:checked {
579-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
580-
}
581-
582-
@media (forced-colors: active) {
583-
[type='checkbox']:checked {
584-
-webkit-appearance: auto;
585-
-moz-appearance: auto;
586-
appearance: auto;
587-
}
588-
}
589-
590-
[type='radio']:checked {
591-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
592-
}
593-
594-
@media (forced-colors: active) {
595-
[type='radio']:checked {
596-
-webkit-appearance: auto;
597-
-moz-appearance: auto;
598-
appearance: auto;
599-
}
600-
}
601-
602-
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
603-
border-color: transparent;
604-
background-color: currentColor;
605-
}
606-
607-
[type='checkbox']:indeterminate {
608-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
609-
border-color: transparent;
610-
background-color: currentColor;
611-
background-size: 100% 100%;
612-
background-position: center;
613-
background-repeat: no-repeat;
614-
}
615-
616-
@media (forced-colors: active) {
617-
[type='checkbox']:indeterminate {
618-
-webkit-appearance: auto;
619-
-moz-appearance: auto;
620-
appearance: auto;
621-
}
622-
}
623-
624-
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
625-
border-color: transparent;
626-
background-color: currentColor;
627-
}
628-
629527
[type='file'] {
630528
background: unset;
631529
border-color: inherit;

COC.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)