@gjsify/adwaita-web 0.54.0 → 0.56.0
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/README.md +8 -0
- package/dist/adwaita-web.css +8146 -3011
- package/dist/adwaita-web.css.map +1 -1
- package/lib/types/adw-application-window.spec.d.ts +1 -0
- package/lib/types/adw-bin.spec.d.ts +1 -0
- package/lib/types/adw-breakpoint-bin.spec.d.ts +1 -0
- package/lib/types/adw-clamp-scrollable.spec.d.ts +1 -0
- package/lib/types/adw-multi-layout-view.spec.d.ts +1 -0
- package/lib/types/adw-preferences-row.spec.d.ts +1 -0
- package/lib/types/adw-shortcuts.spec.d.ts +1 -0
- package/lib/types/adw-status-page.spec.d.ts +1 -0
- package/lib/types/adw-tab-bar.spec.d.ts +1 -0
- package/lib/types/adw-tab-button.spec.d.ts +1 -0
- package/lib/types/adw-tab-overview.spec.d.ts +1 -0
- package/lib/types/adw-view-switcher-sidebar.spec.d.ts +1 -0
- package/lib/types/adw-window.spec.d.ts +1 -0
- package/lib/types/attributes.d.ts +19 -0
- package/lib/types/breakpoints.d.ts +14 -3
- package/lib/types/construct-vectors.spec.d.ts +1 -0
- package/lib/types/elements/adw-action-row.d.ts +4 -0
- package/lib/types/elements/adw-application-window.d.ts +27 -0
- package/lib/types/elements/adw-bin.d.ts +17 -0
- package/lib/types/elements/adw-breakpoint-bin.d.ts +67 -0
- package/lib/types/elements/adw-clamp-scrollable.d.ts +38 -0
- package/lib/types/elements/adw-combo-row.d.ts +4 -0
- package/lib/types/elements/adw-dialog.d.ts +10 -0
- package/lib/types/elements/adw-entry-row.d.ts +6 -0
- package/lib/types/elements/adw-expander-row.d.ts +2 -0
- package/lib/types/elements/adw-header-bar.d.ts +6 -0
- package/lib/types/elements/adw-layout-slot.d.ts +19 -0
- package/lib/types/elements/adw-multi-layout-view.d.ts +101 -0
- package/lib/types/elements/adw-overlay-split-view.d.ts +13 -0
- package/lib/types/elements/adw-preferences-row.d.ts +31 -0
- package/lib/types/elements/adw-shortcuts-dialog.d.ts +13 -0
- package/lib/types/elements/adw-shortcuts-item.d.ts +36 -0
- package/lib/types/elements/adw-shortcuts-section.d.ts +14 -0
- package/lib/types/elements/adw-sidebar.d.ts +8 -2
- package/lib/types/elements/adw-spin-row.d.ts +6 -0
- package/lib/types/elements/adw-switch-row.d.ts +7 -0
- package/lib/types/elements/adw-tab-bar.d.ts +108 -0
- package/lib/types/elements/adw-tab-button.d.ts +32 -0
- package/lib/types/elements/adw-tab-overview.d.ts +199 -0
- package/lib/types/elements/adw-tab-view.d.ts +19 -23
- package/lib/types/elements/adw-toggle-group.d.ts +17 -0
- package/lib/types/elements/adw-view-switcher-sidebar.d.ts +84 -0
- package/lib/types/elements/adw-window.d.ts +40 -0
- package/lib/types/elements/gtk-about-dialog.d.ts +146 -0
- package/lib/types/elements/gtk-application-window.d.ts +34 -0
- package/lib/types/elements/gtk-aspect-frame.d.ts +27 -0
- package/lib/types/elements/gtk-button.d.ts +9 -0
- package/lib/types/elements/gtk-calendar.d.ts +159 -0
- package/lib/types/elements/gtk-center-box.d.ts +39 -0
- package/lib/types/elements/gtk-color-dialog-button.d.ts +69 -0
- package/lib/types/elements/gtk-column-view.d.ts +50 -0
- package/lib/types/elements/gtk-drag-icon.d.ts +78 -0
- package/lib/types/elements/gtk-drawing-area.d.ts +95 -0
- package/lib/types/elements/gtk-editable-label.d.ts +33 -0
- package/lib/types/elements/gtk-emoji-chooser.d.ts +84 -0
- package/lib/types/elements/gtk-entry.d.ts +20 -1
- package/lib/types/elements/gtk-expander.d.ts +49 -0
- package/lib/types/elements/gtk-fixed.d.ts +13 -0
- package/lib/types/elements/gtk-flow-box-child.d.ts +14 -0
- package/lib/types/elements/gtk-flow-box.d.ts +87 -0
- package/lib/types/elements/gtk-font-dialog-button.d.ts +83 -0
- package/lib/types/elements/gtk-frame.d.ts +24 -0
- package/lib/types/elements/gtk-gl-area.d.ts +136 -0
- package/lib/types/elements/gtk-graphics-offload.d.ts +24 -0
- package/lib/types/elements/gtk-grid-view.d.ts +39 -0
- package/lib/types/elements/gtk-grid.d.ts +27 -0
- package/lib/types/elements/gtk-header-bar.d.ts +60 -0
- package/lib/types/elements/gtk-inscription.d.ts +64 -0
- package/lib/types/elements/gtk-label.d.ts +3 -0
- package/lib/types/elements/gtk-level-bar.d.ts +59 -0
- package/lib/types/elements/gtk-link-button.d.ts +29 -0
- package/lib/types/elements/gtk-list-box-row.d.ts +54 -0
- package/lib/types/elements/gtk-list-box.d.ts +100 -0
- package/lib/types/elements/gtk-list-view.d.ts +73 -0
- package/lib/types/elements/gtk-media-controls.d.ts +142 -0
- package/lib/types/elements/gtk-notebook.d.ts +148 -0
- package/lib/types/elements/gtk-overlay.d.ts +22 -0
- package/lib/types/elements/gtk-page-setup-unix-dialog.d.ts +87 -0
- package/lib/types/elements/gtk-paned.d.ts +121 -0
- package/lib/types/elements/gtk-password-entry.d.ts +27 -0
- package/lib/types/elements/gtk-picture.d.ts +66 -0
- package/lib/types/elements/gtk-popover-bin.d.ts +82 -0
- package/lib/types/elements/gtk-popover-menu-bar.d.ts +66 -0
- package/lib/types/elements/gtk-popover-menu.d.ts +83 -0
- package/lib/types/elements/gtk-popover.d.ts +28 -3
- package/lib/types/elements/gtk-print-unix-dialog.d.ts +167 -0
- package/lib/types/elements/gtk-revealer.d.ts +55 -0
- package/lib/types/elements/gtk-scale-button.d.ts +59 -0
- package/lib/types/elements/gtk-scale.d.ts +98 -0
- package/lib/types/elements/gtk-scrollbar.d.ts +124 -0
- package/lib/types/elements/gtk-scrolled-window.d.ts +129 -0
- package/lib/types/elements/gtk-search-bar.d.ts +39 -0
- package/lib/types/elements/gtk-search-entry.d.ts +27 -0
- package/lib/types/elements/gtk-separator.d.ts +10 -0
- package/lib/types/elements/gtk-spin-button.d.ts +94 -0
- package/lib/types/elements/gtk-spinner.d.ts +14 -0
- package/lib/types/elements/gtk-stack-sidebar.d.ts +43 -0
- package/lib/types/elements/gtk-stack-switcher.d.ts +58 -0
- package/lib/types/elements/gtk-stack.d.ts +154 -0
- package/lib/types/elements/gtk-switch.d.ts +4 -1
- package/lib/types/elements/gtk-text-view.d.ts +62 -0
- package/lib/types/elements/gtk-text.d.ts +45 -0
- package/lib/types/elements/gtk-toggle-button.d.ts +45 -0
- package/lib/types/elements/gtk-tree-expander.d.ts +38 -0
- package/lib/types/elements/gtk-video.d.ts +97 -0
- package/lib/types/elements/gtk-viewport.d.ts +84 -0
- package/lib/types/elements/gtk-window-controls.d.ts +80 -0
- package/lib/types/elements/gtk-window-handle.d.ts +39 -0
- package/lib/types/elements/gtk-window.d.ts +103 -0
- package/lib/types/elements/justification.d.ts +2 -0
- package/lib/types/elements/popover-menu.d.ts +18 -0
- package/lib/types/elements/roving-focus.d.ts +29 -1
- package/lib/types/emoji-data.d.ts +38 -0
- package/lib/types/font-description.d.ts +96 -0
- package/lib/types/gtk-about-dialog.spec.d.ts +1 -0
- package/lib/types/gtk-action-bar.spec.d.ts +1 -0
- package/lib/types/gtk-application-window.spec.d.ts +1 -0
- package/lib/types/gtk-aspect-frame.spec.d.ts +1 -0
- package/lib/types/gtk-calendar.spec.d.ts +1 -0
- package/lib/types/gtk-center-box.spec.d.ts +1 -0
- package/lib/types/gtk-color-dialog-button.spec.d.ts +1 -0
- package/lib/types/gtk-column-view.spec.d.ts +1 -0
- package/lib/types/gtk-drag-icon.spec.d.ts +1 -0
- package/lib/types/gtk-drawing-area.spec.d.ts +1 -0
- package/lib/types/gtk-editable-label.spec.d.ts +1 -0
- package/lib/types/gtk-emoji-chooser.spec.d.ts +1 -0
- package/lib/types/gtk-expander.spec.d.ts +1 -0
- package/lib/types/gtk-fixed.spec.d.ts +1 -0
- package/lib/types/gtk-flow-box.spec.d.ts +1 -0
- package/lib/types/gtk-font-dialog-button.spec.d.ts +1 -0
- package/lib/types/gtk-frame.spec.d.ts +1 -0
- package/lib/types/gtk-gl-area.spec.d.ts +1 -0
- package/lib/types/gtk-graphics-offload.spec.d.ts +1 -0
- package/lib/types/gtk-grid-view.spec.d.ts +1 -0
- package/lib/types/gtk-grid.spec.d.ts +1 -0
- package/lib/types/gtk-header-bar.spec.d.ts +1 -0
- package/lib/types/gtk-inscription.spec.d.ts +1 -0
- package/lib/types/gtk-level-bar.spec.d.ts +1 -0
- package/lib/types/gtk-link-button.spec.d.ts +1 -0
- package/lib/types/gtk-list-box.spec.d.ts +1 -0
- package/lib/types/gtk-list-view.spec.d.ts +1 -0
- package/lib/types/gtk-media-controls.spec.d.ts +1 -0
- package/lib/types/gtk-notebook.spec.d.ts +1 -0
- package/lib/types/gtk-overlay.spec.d.ts +1 -0
- package/lib/types/gtk-paned.spec.d.ts +1 -0
- package/lib/types/gtk-password-entry.spec.d.ts +1 -0
- package/lib/types/gtk-picture.spec.d.ts +1 -0
- package/lib/types/gtk-popover-bin.spec.d.ts +1 -0
- package/lib/types/gtk-popover-menu-bar.spec.d.ts +1 -0
- package/lib/types/gtk-popover-menu.spec.d.ts +1 -0
- package/lib/types/gtk-popover-role.spec.d.ts +1 -0
- package/lib/types/gtk-popover.spec.d.ts +1 -0
- package/lib/types/gtk-print-dialogs.spec.d.ts +1 -0
- package/lib/types/gtk-revealer.spec.d.ts +1 -0
- package/lib/types/gtk-scale-button.spec.d.ts +1 -0
- package/lib/types/gtk-scale.spec.d.ts +1 -0
- package/lib/types/gtk-scrollbar.spec.d.ts +1 -0
- package/lib/types/gtk-scrolled-window.spec.d.ts +1 -0
- package/lib/types/gtk-search-bar.spec.d.ts +1 -0
- package/lib/types/gtk-search-entry.spec.d.ts +1 -0
- package/lib/types/gtk-separator.spec.d.ts +1 -0
- package/lib/types/gtk-spin-button.spec.d.ts +1 -0
- package/lib/types/gtk-spinner.spec.d.ts +1 -0
- package/lib/types/gtk-stack-sidebar.spec.d.ts +1 -0
- package/lib/types/gtk-stack-switcher.spec.d.ts +1 -0
- package/lib/types/gtk-stack.spec.d.ts +1 -0
- package/lib/types/gtk-text-view.spec.d.ts +1 -0
- package/lib/types/gtk-text.spec.d.ts +1 -0
- package/lib/types/gtk-toggle-button.spec.d.ts +1 -0
- package/lib/types/gtk-tree-expander.spec.d.ts +1 -0
- package/lib/types/gtk-video.spec.d.ts +1 -0
- package/lib/types/gtk-viewport.spec.d.ts +1 -0
- package/lib/types/gtk-window-controls.spec.d.ts +1 -0
- package/lib/types/gtk-window-handle.spec.d.ts +1 -0
- package/lib/types/gtk-window.spec.d.ts +1 -0
- package/lib/types/index.d.ts +4 -1
- package/lib/types/list-view-dom.d.ts +44 -0
- package/lib/types/namespace/adw.d.ts +12 -0
- package/lib/types/namespace/gtk.d.ts +61 -0
- package/lib/types/page-setup.d.ts +100 -0
- package/lib/types/row-line-clamp.d.ts +20 -0
- package/lib/types/row-tooltip.d.ts +8 -0
- package/lib/types/row-tooltip.spec.d.ts +1 -0
- package/lib/types/scroll-shading.d.ts +15 -1
- package/lib/types/shared-tree-builder.d.ts +75 -17
- package/lib/types/shared-tree-mount.spec.d.ts +1 -0
- package/lib/types/signals.d.ts +4 -0
- package/lib/types/styles.generated.d.ts +1 -1
- package/lib/types/tab-chip.d.ts +73 -0
- package/lib/types/template-classes.d.ts +11 -0
- package/lib/types/widget-size.spec.d.ts +1 -0
- package/package.json +12 -8
- package/scss/_action_row.scss +41 -17
- package/scss/_application_window.scss +26 -0
- package/scss/_aspect_frame.scss +25 -0
- package/scss/_bin.scss +26 -0
- package/scss/_button.scss +45 -0
- package/scss/_button_row.scss +5 -0
- package/scss/_calendar.scss +176 -0
- package/scss/_center_box.scss +25 -0
- package/scss/_checks.scss +6 -1
- package/scss/_clamp_scrollable.scss +28 -0
- package/scss/_color_button.scss +67 -0
- package/scss/_column_view.scss +126 -0
- package/scss/_drag_icon.scss +55 -0
- package/scss/_drawing.scss +85 -0
- package/scss/_emoji_chooser.scss +213 -0
- package/scss/_entry.scss +13 -5
- package/scss/_entry_row.scss +1 -1
- package/scss/_expander.scss +113 -0
- package/scss/_expander_row.scss +36 -3
- package/scss/_fixed.scss +29 -0
- package/scss/_flow_box.scss +94 -0
- package/scss/_font_button.scss +63 -0
- package/scss/_frame.scss +41 -0
- package/scss/_grid.scss +19 -0
- package/scss/_grid_view.scss +46 -0
- package/scss/_gtk_about_dialog.scss +186 -0
- package/scss/_headerbar.scss +134 -1
- package/scss/_icons.generated.scss +186 -0
- package/scss/_inscription.scss +125 -0
- package/scss/_level_bar.scss +190 -0
- package/scss/_link.scss +82 -0
- package/scss/_list_box.scss +88 -0
- package/scss/_list_view.scss +96 -0
- package/scss/_media_controls.scss +139 -0
- package/scss/_overlay.scss +68 -0
- package/scss/_paned.scss +130 -0
- package/scss/_password_entry.scss +83 -0
- package/scss/_picture.scss +80 -0
- package/scss/_popover_bin.scss +53 -0
- package/scss/_popover_menu_bar.scss +104 -0
- package/scss/_preferences_row.scss +60 -0
- package/scss/_print_dialogs.scss +328 -0
- package/scss/_reset.scss +21 -19
- package/scss/_revealer.scss +37 -0
- package/scss/_row.scss +36 -5
- package/scss/_scale.scss +298 -0
- package/scss/_scale_button.scss +167 -0
- package/scss/_scrollbar.scss +230 -0
- package/scss/_scrolled_window.scss +131 -0
- package/scss/_search_bar.scss +118 -0
- package/scss/_search_entry.scss +86 -0
- package/scss/_separator.scss +44 -0
- package/scss/_shortcuts_dialog.scss +100 -0
- package/scss/_spin_button.scss +172 -0
- package/scss/_spin_row.scss +56 -8
- package/scss/_spinner.scss +85 -4
- package/scss/_stack.scss +729 -0
- package/scss/_status_page.scss +1 -1
- package/scss/_switch.scss +13 -5
- package/scss/_switch_row.scss +10 -0
- package/scss/_tab_bar.scss +317 -0
- package/scss/_tab_button.scss +98 -0
- package/scss/_tab_overview.scss +483 -0
- package/scss/_text.scss +182 -0
- package/scss/_theme.scss +1 -1
- package/scss/_toggle_group.scss +28 -0
- package/scss/_tree_expander.scss +62 -0
- package/scss/_variables.scss +1 -1
- package/scss/_video.scss +146 -0
- package/scss/_view_switcher_sidebar.scss +112 -0
- package/scss/_viewport.scss +50 -0
- package/scss/_widget.scss +14 -3
- package/scss/_window.scss +131 -2
- package/scss/_window_handle.scss +20 -0
- package/scss/adwaita-skin.scss +109 -0
- package/src/adw-action-rows.spec.ts +331 -0
- package/src/adw-application-window.spec.ts +118 -0
- package/src/adw-bin.spec.ts +75 -0
- package/src/adw-breakpoint-bin.spec.ts +324 -0
- package/src/adw-clamp-scrollable.spec.ts +189 -0
- package/src/adw-header-bar.spec.ts +18 -0
- package/src/adw-multi-layout-view.spec.ts +243 -0
- package/src/adw-preferences-row.spec.ts +164 -0
- package/src/adw-row-state.spec.ts +142 -0
- package/src/adw-shortcuts.spec.ts +155 -0
- package/src/adw-status-page.spec.ts +124 -0
- package/src/adw-tab-bar.spec.ts +287 -0
- package/src/adw-tab-button.spec.ts +101 -0
- package/src/adw-tab-overview.spec.ts +443 -0
- package/src/adw-view-switcher-sidebar.spec.ts +281 -0
- package/src/adw-window.spec.ts +129 -0
- package/src/attributes.ts +52 -0
- package/src/breakpoints.ts +25 -8
- package/src/capabilities.d.mts +3 -0
- package/src/capabilities.mjs +21 -0
- package/src/connect-lifecycle.spec.ts +12 -0
- package/src/construct-vectors.spec.ts +175 -0
- package/src/elements/adw-action-row.ts +31 -2
- package/src/elements/adw-alert-dialog.ts +4 -1
- package/src/elements/adw-application-window.ts +154 -0
- package/src/elements/adw-bin.ts +101 -0
- package/src/elements/adw-breakpoint-bin.ts +287 -0
- package/src/elements/adw-button-row.ts +7 -1
- package/src/elements/adw-clamp-scrollable.ts +207 -0
- package/src/elements/adw-combo-row.ts +26 -1
- package/src/elements/adw-dialog.ts +19 -0
- package/src/elements/adw-entry-row.ts +22 -12
- package/src/elements/adw-expander-row.ts +34 -1
- package/src/elements/adw-header-bar.ts +18 -4
- package/src/elements/adw-layout-slot.ts +95 -0
- package/src/elements/adw-multi-layout-view.ts +326 -0
- package/src/elements/adw-overlay-split-view.ts +29 -6
- package/src/elements/adw-preferences-row.ts +153 -0
- package/src/elements/adw-shortcuts-dialog.ts +52 -0
- package/src/elements/adw-shortcuts-item.ts +171 -0
- package/src/elements/adw-shortcuts-section.ts +86 -0
- package/src/elements/adw-sidebar.ts +74 -7
- package/src/elements/adw-spin-row.ts +37 -2
- package/src/elements/adw-status-page.ts +10 -2
- package/src/elements/adw-switch-row.ts +53 -2
- package/src/elements/adw-tab-bar.ts +529 -0
- package/src/elements/adw-tab-button.ts +194 -0
- package/src/elements/adw-tab-overview.ts +1011 -0
- package/src/elements/adw-tab-view.ts +66 -145
- package/src/elements/adw-toggle-group.ts +138 -14
- package/src/elements/adw-view-stack.ts +18 -0
- package/src/elements/adw-view-switcher-sidebar.ts +332 -0
- package/src/elements/adw-window.ts +190 -11
- package/src/elements/checks.ts +35 -8
- package/src/elements/gtk-about-dialog.ts +811 -0
- package/src/elements/gtk-application-window.ts +108 -0
- package/src/elements/gtk-aspect-frame.ts +160 -0
- package/src/elements/gtk-button.ts +12 -0
- package/src/elements/gtk-calendar.ts +757 -0
- package/src/elements/gtk-center-box.ts +184 -0
- package/src/elements/gtk-color-dialog-button.ts +278 -0
- package/src/elements/gtk-column-view.ts +320 -0
- package/src/elements/gtk-drag-icon.ts +257 -0
- package/src/elements/gtk-drawing-area.ts +303 -0
- package/src/elements/gtk-editable-label.ts +204 -0
- package/src/elements/gtk-emoji-chooser.ts +542 -0
- package/src/elements/gtk-entry.ts +39 -5
- package/src/elements/gtk-expander.ts +301 -0
- package/src/elements/gtk-fixed.ts +99 -0
- package/src/elements/gtk-flow-box-child.ts +68 -0
- package/src/elements/gtk-flow-box.ts +480 -0
- package/src/elements/gtk-font-dialog-button.ts +432 -0
- package/src/elements/gtk-frame.ts +174 -0
- package/src/elements/gtk-gl-area.ts +476 -0
- package/src/elements/gtk-graphics-offload.ts +130 -0
- package/src/elements/gtk-grid-view.ts +168 -0
- package/src/elements/gtk-grid.ts +127 -0
- package/src/elements/gtk-header-bar.ts +273 -0
- package/src/elements/gtk-inscription.ts +387 -0
- package/src/elements/gtk-label.ts +19 -11
- package/src/elements/gtk-level-bar.ts +323 -0
- package/src/elements/gtk-link-button.ts +138 -0
- package/src/elements/gtk-list-box-row.ts +195 -0
- package/src/elements/gtk-list-box.ts +413 -0
- package/src/elements/gtk-list-view.ts +370 -0
- package/src/elements/gtk-media-controls.ts +509 -0
- package/src/elements/gtk-notebook.ts +664 -0
- package/src/elements/gtk-overlay.ts +149 -0
- package/src/elements/gtk-page-setup-unix-dialog.ts +420 -0
- package/src/elements/gtk-paned.ts +597 -0
- package/src/elements/gtk-password-entry.ts +170 -0
- package/src/elements/gtk-picture.ts +254 -0
- package/src/elements/gtk-popover-bin.ts +332 -0
- package/src/elements/gtk-popover-menu-bar.ts +355 -0
- package/src/elements/gtk-popover-menu.ts +339 -0
- package/src/elements/gtk-popover.ts +92 -10
- package/src/elements/gtk-print-unix-dialog.ts +989 -0
- package/src/elements/gtk-progress-bar.ts +24 -11
- package/src/elements/gtk-revealer.ts +406 -0
- package/src/elements/gtk-scale-button.ts +358 -0
- package/src/elements/gtk-scale.ts +492 -0
- package/src/elements/gtk-scrollbar.ts +528 -0
- package/src/elements/gtk-scrolled-window.ts +653 -0
- package/src/elements/gtk-search-bar.ts +200 -0
- package/src/elements/gtk-search-entry.ts +172 -0
- package/src/elements/gtk-separator.ts +52 -0
- package/src/elements/gtk-spin-button.ts +475 -0
- package/src/elements/gtk-spinner.ts +126 -0
- package/src/elements/gtk-stack-sidebar.ts +212 -0
- package/src/elements/gtk-stack-switcher.ts +279 -0
- package/src/elements/gtk-stack.ts +748 -0
- package/src/elements/gtk-switch.ts +52 -19
- package/src/elements/gtk-text-view.ts +290 -0
- package/src/elements/gtk-text.ts +219 -0
- package/src/elements/gtk-toggle-button.ts +239 -0
- package/src/elements/gtk-tree-expander.ts +243 -0
- package/src/elements/gtk-video.ts +423 -0
- package/src/elements/gtk-viewport.ts +277 -0
- package/src/elements/gtk-window-controls.ts +341 -0
- package/src/elements/gtk-window-handle.ts +221 -0
- package/src/elements/gtk-window.ts +372 -0
- package/src/elements/justification.ts +24 -0
- package/src/elements/popover-menu.ts +24 -0
- package/src/elements/roving-focus.ts +53 -21
- package/src/emoji-data.ts +577 -0
- package/src/entry-rows.spec.ts +31 -0
- package/src/font-description.ts +238 -0
- package/src/gtk-about-dialog.spec.ts +250 -0
- package/src/gtk-action-bar.spec.ts +89 -0
- package/src/gtk-application-window.spec.ts +107 -0
- package/src/gtk-aspect-frame.spec.ts +114 -0
- package/src/gtk-calendar.spec.ts +589 -0
- package/src/gtk-center-box.spec.ts +125 -0
- package/src/gtk-color-dialog-button.spec.ts +141 -0
- package/src/gtk-column-view.spec.ts +154 -0
- package/src/gtk-drag-icon.spec.ts +190 -0
- package/src/gtk-drawing-area.spec.ts +211 -0
- package/src/gtk-editable-label.spec.ts +190 -0
- package/src/gtk-emoji-chooser.spec.ts +173 -0
- package/src/gtk-entry.spec.ts +23 -0
- package/src/gtk-expander.spec.ts +170 -0
- package/src/gtk-fixed.spec.ts +97 -0
- package/src/gtk-flow-box.spec.ts +289 -0
- package/src/gtk-font-dialog-button.spec.ts +166 -0
- package/src/gtk-frame.spec.ts +119 -0
- package/src/gtk-gl-area.spec.ts +361 -0
- package/src/gtk-graphics-offload.spec.ts +119 -0
- package/src/gtk-grid-view.spec.ts +106 -0
- package/src/gtk-grid.spec.ts +122 -0
- package/src/gtk-header-bar.spec.ts +202 -0
- package/src/gtk-inscription.spec.ts +235 -0
- package/src/gtk-level-bar.spec.ts +199 -0
- package/src/gtk-link-button.spec.ts +117 -0
- package/src/gtk-list-box.spec.ts +422 -0
- package/src/gtk-list-view.spec.ts +203 -0
- package/src/gtk-media-controls.spec.ts +295 -0
- package/src/gtk-notebook.spec.ts +546 -0
- package/src/gtk-overlay.spec.ts +141 -0
- package/src/gtk-paned.spec.ts +267 -0
- package/src/gtk-password-entry.spec.ts +150 -0
- package/src/gtk-picture.spec.ts +172 -0
- package/src/gtk-popover-bin.spec.ts +229 -0
- package/src/gtk-popover-menu-bar.spec.ts +296 -0
- package/src/gtk-popover-menu.spec.ts +261 -0
- package/src/gtk-popover-role.spec.ts +138 -0
- package/src/gtk-popover.spec.ts +264 -0
- package/src/gtk-print-dialogs.spec.ts +251 -0
- package/src/gtk-revealer.spec.ts +164 -0
- package/src/gtk-scale-button.spec.ts +218 -0
- package/src/gtk-scale.spec.ts +213 -0
- package/src/gtk-scrollbar.spec.ts +244 -0
- package/src/gtk-scrolled-window.spec.ts +262 -0
- package/src/gtk-search-bar.spec.ts +179 -0
- package/src/gtk-search-entry.spec.ts +142 -0
- package/src/gtk-separator.spec.ts +74 -0
- package/src/gtk-spin-button.spec.ts +186 -0
- package/src/gtk-spinner.spec.ts +130 -0
- package/src/gtk-stack-sidebar.spec.ts +217 -0
- package/src/gtk-stack-switcher.spec.ts +249 -0
- package/src/gtk-stack.spec.ts +432 -0
- package/src/gtk-text-view.spec.ts +189 -0
- package/src/gtk-text.spec.ts +163 -0
- package/src/gtk-toggle-button.spec.ts +186 -0
- package/src/gtk-tree-expander.spec.ts +201 -0
- package/src/gtk-video.spec.ts +240 -0
- package/src/gtk-viewport.spec.ts +140 -0
- package/src/gtk-window-controls.spec.ts +232 -0
- package/src/gtk-window-handle.spec.ts +158 -0
- package/src/gtk-window.spec.ts +202 -0
- package/src/index.ts +9 -1
- package/src/keyboard-operable.spec.ts +77 -9
- package/src/list-view-dom.ts +121 -0
- package/src/namespace/adw.ts +12 -0
- package/src/namespace/gtk.ts +61 -0
- package/src/page-setup.ts +222 -0
- package/src/row-line-clamp.ts +74 -0
- package/src/row-tooltip.spec.ts +313 -0
- package/src/row-tooltip.ts +52 -0
- package/src/scroll-shading.ts +18 -1
- package/src/shared-tree-builder.ts +336 -41
- package/src/shared-tree-mount.spec.ts +130 -0
- package/src/shared-trees.spec.ts +15 -0
- package/src/signals.ts +15 -0
- package/src/style-classes.spec.ts +9 -8
- package/src/styles.generated.ts +1 -1
- package/src/tab-chip.ts +200 -0
- package/src/template-classes.ts +45 -0
- package/src/test.browser.mts +160 -0
- package/src/widget-size.spec.ts +117 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// _print_dialogs.scss — the two Unix print dialogs: <gtk-page-setup-unix-dialog> and
|
|
2
|
+
// <gtk-print-unix-dialog>.
|
|
3
|
+
//
|
|
4
|
+
// Neither has a stylesheet of its own upstream: libadwaita restyles exactly three things
|
|
5
|
+
// under `window.print` and one under `window.pagesetup`, and everything else is GTK
|
|
6
|
+
// defaults — the `.dialog-action-area` spacing, the notebook, the grid, the frame. What is
|
|
7
|
+
// below is therefore the `.ui` layout in CSS (the grid the page-setup dialog is, the
|
|
8
|
+
// notebook the print dialog is) plus the four libadwaita rules that DO apply.
|
|
9
|
+
//
|
|
10
|
+
// Reference: refs/libadwaita/src/stylesheet/widgets/_dialogs.scss:6-13
|
|
11
|
+
// (`.dialog-action-area { margin: 6px; border-spacing: 6px }`)
|
|
12
|
+
// Reference: refs/libadwaita/src/stylesheet/widgets/_dialogs.scss:15-34
|
|
13
|
+
// (`window.print:not(.ssd-frame)`: `drawing` colour and no background or padding,
|
|
14
|
+
// `paper` WHITE with `background-clip: padding-box` and a 1px `$border_color` border,
|
|
15
|
+
// a FLAT titlebar and a `.view` `.dialog-action-box`)
|
|
16
|
+
// Reference: refs/libadwaita/src/stylesheet/widgets/_dialogs.scss:38-42
|
|
17
|
+
// (`window.pagesetup:not(.ssd-frame)`: a FLAT titlebar)
|
|
18
|
+
// Reference: refs/gtk/gtk/print/ui/gtkpagesetupunixdialog.ui (6px row / 12px column
|
|
19
|
+
// spacing, 5px margins)
|
|
20
|
+
// Reference: refs/gtk/gtk/print/ui/gtkprintunixdialog.ui (18px page margins and spacing,
|
|
21
|
+
// 12px inside a group, the bold group headings, the framed printer list)
|
|
22
|
+
// Copyright (c) 2006-2024 Red Hat, Inc. / The GTK authors. LGPLv2.1+.
|
|
23
|
+
// Modifications: Adapted for @gjsify/adwaita-web Web Components.
|
|
24
|
+
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
// GtkPageSetupUnixDialog — one grid, four rows.
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
|
|
29
|
+
gtk-page-setup-unix-dialog {
|
|
30
|
+
.adw-page-setup-grid {
|
|
31
|
+
display: grid;
|
|
32
|
+
// The `.ui`'s own spacing: 6px between rows, 12px between columns, 5px of margin.
|
|
33
|
+
grid-template-columns: max-content 1fr 1fr;
|
|
34
|
+
gap: 6px 12px;
|
|
35
|
+
padding: 5px;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.adw-page-setup-label {
|
|
40
|
+
// `halign: 1`, `valign: 3` — right-aligned against its control, centred on it.
|
|
41
|
+
text-align: end;
|
|
42
|
+
align-self: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// `printer_combo` and `paper_size_combo` are `column-span 3` on a 4-column grid, so
|
|
46
|
+
// they fill the three remaining tracks.
|
|
47
|
+
.adw-page-setup-printer,
|
|
48
|
+
.adw-page-setup-paper {
|
|
49
|
+
grid-column: 2 / span 3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// `paper_size_label` is the row that REPORTS the choice, and it sits under the combo.
|
|
53
|
+
.adw-page-setup-size-label {
|
|
54
|
+
grid-column: 2 / span 3;
|
|
55
|
+
padding: 2px 0;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.adw-page-setup-orientation {
|
|
60
|
+
grid-column: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// The `.dialog-action-area`: margin 6px, border-spacing 6px, and the Apply button is
|
|
64
|
+
// the dialog's default response.
|
|
65
|
+
.adw-page-setup-actions {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: 6px;
|
|
68
|
+
margin: 6px;
|
|
69
|
+
padding: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.adw-page-setup-apply {
|
|
73
|
+
margin-left: auto;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ---------------------------------------------------------------------------
|
|
78
|
+
// GtkPrintUnixDialog — a notebook over a frame, with the action area below.
|
|
79
|
+
// ---------------------------------------------------------------------------
|
|
80
|
+
|
|
81
|
+
gtk-print-unix-dialog {
|
|
82
|
+
.adw-print-root {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
min-width: 480px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// The notebook's tab row, drawn as a switcher: a flat button per page.
|
|
89
|
+
.adw-print-switcher {
|
|
90
|
+
display: flex;
|
|
91
|
+
gap: 2px;
|
|
92
|
+
padding: 4px 4px 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.adw-print-switcher-item {
|
|
96
|
+
padding: 6px 12px;
|
|
97
|
+
border: none;
|
|
98
|
+
border-radius: 999px;
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
color: inherit;
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
|
|
103
|
+
&:hover {
|
|
104
|
+
background-color: var(--button-hover-color);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:checked,
|
|
108
|
+
&.checked {
|
|
109
|
+
background-color: var(--button-active-color);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.adw-print-panel {
|
|
114
|
+
flex: 1 1 auto;
|
|
115
|
+
min-height: 0;
|
|
116
|
+
padding: 12px;
|
|
117
|
+
overflow: auto;
|
|
118
|
+
// `window.print`'s `.dialog-action-box` is a `.view`, and so is the page the notebook
|
|
119
|
+
// shows around its controls.
|
|
120
|
+
background-color: var(--view-bg-color);
|
|
121
|
+
color: var(--view-fg-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// General and Page Setup put two groups side by side; the rest are one column.
|
|
125
|
+
.adw-print-columns {
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: 18px;
|
|
128
|
+
align-items: flex-start;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.adw-print-column {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
gap: 18px;
|
|
135
|
+
flex: 1 1 auto;
|
|
136
|
+
min-width: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// One `frame_templateN`: a bold heading over a grid.
|
|
140
|
+
.adw-print-group {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
gap: 6px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.adw-print-group-title {
|
|
147
|
+
font-weight: bold;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.adw-print-group-body {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: 6px;
|
|
154
|
+
padding-left: 12px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.adw-print-grid-row {
|
|
158
|
+
display: flex;
|
|
159
|
+
gap: 12px;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.adw-print-label {
|
|
164
|
+
text-align: end;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// The printer list: a framed, scrolled column of rows, each an icon and two lines.
|
|
168
|
+
.adw-print-printer-list {
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
gap: 2px;
|
|
172
|
+
min-width: 220px;
|
|
173
|
+
max-height: 220px;
|
|
174
|
+
overflow: auto;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.adw-print-printer-row {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: 6px;
|
|
181
|
+
padding: 6px;
|
|
182
|
+
border: none;
|
|
183
|
+
border-radius: var(--button-radius);
|
|
184
|
+
background-color: transparent;
|
|
185
|
+
color: inherit;
|
|
186
|
+
text-align: start;
|
|
187
|
+
|
|
188
|
+
&:hover {
|
|
189
|
+
background-color: var(--button-hover-color);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.checked {
|
|
193
|
+
background-color: var(--button-active-color);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.adw-print-printer-text {
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
min-width: 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.adw-print-printer-name {
|
|
204
|
+
font-weight: bold;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.adw-print-printer-location {
|
|
208
|
+
font-size: 0.9em;
|
|
209
|
+
opacity: 0.7;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// `scrolledwindow` with `has-frame` around the printer list.
|
|
213
|
+
.adw-print-frame {
|
|
214
|
+
border: 1px solid var(--border-color);
|
|
215
|
+
border-radius: 9px;
|
|
216
|
+
background-color: var(--view-bg-color);
|
|
217
|
+
padding: 6px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// The collate / reverse page-order preview: four 32x40 thumbnails in two columns.
|
|
221
|
+
.adw-print-collate-preview {
|
|
222
|
+
display: grid;
|
|
223
|
+
grid-template-columns: repeat(2, 32px);
|
|
224
|
+
gap: 4px;
|
|
225
|
+
|
|
226
|
+
&[data-second-column='false'] > :nth-child(n + 3) {
|
|
227
|
+
display: none;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// `page_layout_preview`: the `drawing` node — no background, no padding, the
|
|
232
|
+
// foreground colour only — with the `paper` inside it.
|
|
233
|
+
.adw-print-sheet-preview {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
align-items: center;
|
|
237
|
+
gap: 6px;
|
|
238
|
+
padding: 0;
|
|
239
|
+
background: none;
|
|
240
|
+
border: none;
|
|
241
|
+
color: var(--window-fg-color);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.adw-print-paper {
|
|
245
|
+
// `paper { background-color: white; color: RGB(0 0 6 / 80%);
|
|
246
|
+
// background-clip: padding-box; border: 1px solid $border_color }` — white paper in
|
|
247
|
+
// a dark dialog is the point of the preview.
|
|
248
|
+
width: 110px;
|
|
249
|
+
max-width: 100%;
|
|
250
|
+
display: flex;
|
|
251
|
+
background-color: white;
|
|
252
|
+
color: rgba(0, 0, 6, 0.8);
|
|
253
|
+
background-clip: padding-box;
|
|
254
|
+
border: 1px solid var(--border-color);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.adw-print-number-up {
|
|
258
|
+
display: grid;
|
|
259
|
+
grid-template-columns: repeat(var(--adw-print-number-up-columns, 1), 1fr);
|
|
260
|
+
grid-template-rows: repeat(var(--adw-print-number-up-rows, 1), 1fr);
|
|
261
|
+
width: 100%;
|
|
262
|
+
height: 100%;
|
|
263
|
+
|
|
264
|
+
> span {
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
justify-content: center;
|
|
268
|
+
font-size: 10px;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.adw-print-sheet-caption {
|
|
273
|
+
font-size: 0.85em;
|
|
274
|
+
opacity: 0.8;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// The four option pages: the empty grids the backend's option widgets go into.
|
|
278
|
+
.adw-print-options-grid {
|
|
279
|
+
display: grid;
|
|
280
|
+
grid-template-columns: max-content 1fr;
|
|
281
|
+
gap: 6px 12px;
|
|
282
|
+
padding: 12px;
|
|
283
|
+
|
|
284
|
+
&[data-empty='true'] {
|
|
285
|
+
// Nothing to show, and saying so beats an empty frame: the reader has to be able to
|
|
286
|
+
// tell "this page has no options" from "this page failed to render".
|
|
287
|
+
min-height: 64px;
|
|
288
|
+
opacity: 0.6;
|
|
289
|
+
font-style: italic;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// `conflicts_widget` — an action bar, hidden until `mark_conflicts` raises it.
|
|
294
|
+
.adw-print-conflicts {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
gap: 6px;
|
|
298
|
+
margin: 0 12px;
|
|
299
|
+
padding: 6px 12px;
|
|
300
|
+
border-radius: 9px;
|
|
301
|
+
background-color: var(--warning-bg-color);
|
|
302
|
+
color: var(--warning-color);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// `.dialog-action-area`: Preview / Cancel / Print, with Print as the default.
|
|
306
|
+
.adw-print-actions {
|
|
307
|
+
display: flex;
|
|
308
|
+
gap: 6px;
|
|
309
|
+
margin: 6px;
|
|
310
|
+
padding: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.adw-print-print {
|
|
314
|
+
margin-left: auto;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// The pseudo-disabled rows the C reaches with `gtk_widget_set_sensitive (…, FALSE)`:
|
|
318
|
+
// a GTK-insensitive widget is still focusable-ish and still legible, so it dims rather
|
|
319
|
+
// than disappearing.
|
|
320
|
+
.insensitive {
|
|
321
|
+
opacity: 0.45;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
input:disabled,
|
|
325
|
+
gtk-drop-down[disabled] {
|
|
326
|
+
opacity: 0.45;
|
|
327
|
+
}
|
|
328
|
+
}
|
package/scss/_reset.scss
CHANGED
|
@@ -29,25 +29,27 @@
|
|
|
29
29
|
// never listed, so it silently ran without the isolation floor. Nothing noticed,
|
|
30
30
|
// because the only spec touching this file instantiates `adw-switch-row`.
|
|
31
31
|
$adw-components:
|
|
32
|
-
adw-about-dialog, adw-action-row,
|
|
33
|
-
adw-
|
|
34
|
-
adw-bottom-sheet-
|
|
35
|
-
adw-
|
|
36
|
-
adw-
|
|
37
|
-
adw-
|
|
38
|
-
adw-
|
|
39
|
-
adw-
|
|
40
|
-
adw-
|
|
41
|
-
adw-
|
|
42
|
-
adw-
|
|
43
|
-
adw-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
32
|
+
adw-about-dialog, adw-action-row, adw-alert-dialog, adw-alert-response, adw-application-window, adw-avatar,
|
|
33
|
+
adw-banner, adw-bin, adw-bottom-sheet, adw-bottom-sheet-bottom-bar, adw-bottom-sheet-content,
|
|
34
|
+
adw-bottom-sheet-sheet, adw-breakpoint-bin, adw-button-content, adw-button-row, adw-card, adw-carousel,
|
|
35
|
+
adw-carousel-indicator-dots, adw-carousel-indicator-lines, adw-clamp, adw-clamp-scrollable, adw-combo-row,
|
|
36
|
+
adw-data-grid, adw-dialog, adw-entry-row, adw-expander-row, adw-header-bar, adw-inline-view-switcher,
|
|
37
|
+
adw-layout-slot, adw-multi-layout-view, adw-navigation-page, adw-navigation-split-view, adw-navigation-view,
|
|
38
|
+
adw-overlay-split-view, adw-password-entry-row, adw-preferences-dialog, adw-preferences-group,
|
|
39
|
+
adw-preferences-page, adw-preferences-row, adw-radio, adw-shortcut-label, adw-shortcuts-dialog, adw-shortcuts-item,
|
|
40
|
+
adw-shortcuts-section, adw-sidebar, adw-sidebar-item, adw-sidebar-section, adw-source-view, adw-spin-row,
|
|
41
|
+
adw-spinner, adw-split-button, adw-status-page, adw-switch-row, adw-tab-bar, adw-tab-button, adw-tab-overview, adw-tab-page, adw-tab-view,
|
|
42
|
+
adw-toast-overlay, adw-toggle, adw-toggle-group, adw-toolbar-view, gtk-notebook, adw-view-stack, adw-view-stack-page,
|
|
43
|
+
adw-view-switcher, adw-view-switcher-bar, adw-view-switcher-page, adw-view-switcher-sidebar, adw-window, adw-window-title, adw-wrap-box,
|
|
44
|
+
gtk-about-dialog, gtk-action-bar, gtk-application-window, gtk-aspect-frame, gtk-box, gtk-button, gtk-center-box,
|
|
45
|
+
gtk-calendar, gtk-check-button, gtk-color-dialog-button, gtk-column-view, gtk-drag-icon, gtk-drawing-area, gtk-drop-down,
|
|
46
|
+
gtk-editable-label, gtk-emoji-chooser, gtk-entry, gtk-expander, gtk-fixed, gtk-flow-box, gtk-flow-box-child, gtk-font-dialog-button, gtk-frame,
|
|
47
|
+
gtk-gl-area, gtk-graphics-offload, gtk-grid, gtk-grid-view, gtk-header-bar, gtk-image, gtk-inscription, gtk-label, gtk-level-bar,
|
|
48
|
+
gtk-link-button, gtk-list-box, gtk-list-box-row, gtk-list-view, gtk-media-controls, gtk-menu-button, gtk-overlay, gtk-page-setup-unix-dialog, gtk-paned,
|
|
49
|
+
gtk-password-entry, gtk-picture, gtk-popover, gtk-popover-bin, gtk-popover-menu, gtk-popover-menu-bar, gtk-print-unix-dialog,
|
|
50
|
+
gtk-progress-bar, gtk-revealer, gtk-scale, gtk-scale-button, gtk-scrollbar, gtk-scrolled-window, gtk-search-bar, gtk-search-entry, gtk-separator,
|
|
51
|
+
gtk-spin-button, gtk-spinner, gtk-stack, gtk-stack-sidebar, gtk-stack-switcher, gtk-switch, gtk-text, gtk-text-view, gtk-toggle-button, gtk-tree-expander, gtk-video, gtk-viewport,
|
|
52
|
+
gtk-window, gtk-window-controls, gtk-window-handle;
|
|
51
53
|
|
|
52
54
|
// Roots: re-root the inherited typographic properties (and the box model) so a
|
|
53
55
|
// host page's font / colour / spacing cannot flow into the widget. Every value
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// _revealer.scss — <gtk-revealer>: the box that clips while its child slides or folds.
|
|
2
|
+
//
|
|
3
|
+
// libadwaita gives the revealer node NO rule of its own — `grep -rn revealer
|
|
4
|
+
// src/stylesheet/` returns the one `actionbar > revealer > box` chain in `_toolbars.scss` —
|
|
5
|
+
// so there is no look to copy and this partial is the CLIP.
|
|
6
|
+
//
|
|
7
|
+
// `overflow: hidden` is `GTK_OVERFLOW_HIDDEN`, which `gtk_revealer_start_animation` sets
|
|
8
|
+
// for the four plain slide types and releases when the position lands
|
|
9
|
+
// (gtkrevealer.c:230-236, :243-249). It is unconditional here instead, which differs
|
|
10
|
+
// nowhere a reader can see: at a settled position the clip box is the child's own size, so
|
|
11
|
+
// there is nothing to clip — and it has to be always, because a revealer that collapsed to
|
|
12
|
+
// `display: none` at position 0 would hide its child from the accessibility tree too, and
|
|
13
|
+
// the widget's doc section says the child stays in it whatever the state
|
|
14
|
+
// (gtkrevealer.c:61-63).
|
|
15
|
+
//
|
|
16
|
+
// Reference: refs/libadwaita/src/stylesheet/widgets/_toolbars.scss (`actionbar > revealer`)
|
|
17
|
+
// Reference: refs/gtk/gtk/gtkrevealer.c (GTK_OVERFLOW_HIDDEN, gtk_revealer_snapshot)
|
|
18
|
+
// Copyright (c) The GTK Team. LGPLv2.1+.
|
|
19
|
+
// Modifications: Adapted for @gjsify/adwaita-web Web Components.
|
|
20
|
+
|
|
21
|
+
gtk-revealer {
|
|
22
|
+
display: block;
|
|
23
|
+
// `gtk_revealer_measure` answers the CHILD's minimum and natural, scaled — so the
|
|
24
|
+
// revealer's own size is the child's, and a block-level host would stretch to its parent
|
|
25
|
+
// instead. `fit-content` is `min(max-content, available)`, which is the pair of numbers a
|
|
26
|
+
// GTK size request is, and a flex parent can still grow it because `flex-basis: auto`
|
|
27
|
+
// reads this value.
|
|
28
|
+
width: fit-content;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// The box the element sizes to `ceil(natural × scale)`. It has to be a real box — the
|
|
34
|
+
// height it is given is the revealer's own measured height in the C.
|
|
35
|
+
.adw-revealer-clip {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
package/scss/_row.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// _row.scss — Shared base styling for rows in preferences groups.
|
|
2
2
|
// Reference: refs/adwaita-web/adwaita-web/scss/_row_types.scss
|
|
3
|
-
// Reference: refs/libadwaita/src/stylesheet/widgets/_lists.scss (AdwActionRow)
|
|
3
|
+
// Reference: refs/libadwaita/src/stylesheet/widgets/_lists.scss (AdwActionRow, row.entry)
|
|
4
4
|
// Copyright (c) GNOME contributors (libadwaita). LGPLv2.1+.
|
|
5
5
|
// Copyright (c) 2025 csm (adwaita-web). MIT License.
|
|
6
6
|
// Modifications: Adapted for @gjsify/adwaita-web Web Components.
|
|
@@ -10,8 +10,8 @@ adw-combo-row {
|
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: space-between;
|
|
13
|
-
min-height:
|
|
14
|
-
padding:
|
|
13
|
+
min-height: 54px;
|
|
14
|
+
padding: 0 var(--spacing-m);
|
|
15
15
|
gap: var(--spacing-m);
|
|
16
16
|
border-bottom: 1px solid var(--card-shade-color);
|
|
17
17
|
|
|
@@ -20,6 +20,16 @@ adw-combo-row {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
// A `tooltip-text` part must cover the ROW, not just the label text inside it: the browser
|
|
24
|
+
// resolves a tooltip by walking UP from the hovered node, so a part that stops at the text's
|
|
25
|
+
// own height lets the walk reach the host — whose `title` is the row's LABEL — over the rest
|
|
26
|
+
// of the widget. Measured on a 54px `adw-action-row`: the label text is 18px of it. The
|
|
27
|
+
// marker is `applyRowTooltip`'s (`src/row-tooltip.ts`); stretching changes nothing drawn,
|
|
28
|
+
// because these columns centre their own children.
|
|
29
|
+
[data-row-tooltip] {
|
|
30
|
+
align-self: stretch;
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
// Shared title/subtitle text column used by every row type (action/switch/
|
|
24
34
|
// combo/spin). The title is the primary label; the subtitle is dimmed and
|
|
25
35
|
// hidden when empty.
|
|
@@ -31,6 +41,12 @@ adw-combo-row {
|
|
|
31
41
|
min-width: 0;
|
|
32
42
|
}
|
|
33
43
|
|
|
44
|
+
// NO `.adw-row-title` default HERE, deliberately. `.adw-row-title` is also the class
|
|
45
|
+
// `<adw-entry-row>` and `<adw-preferences-row>` put on their titles, so a global
|
|
46
|
+
// `white-space: nowrap` here silently made those two rows un-wrapping too — a change
|
|
47
|
+
// to row types this feature was never scoped to. Each row type that wants a wrapping
|
|
48
|
+
// title says so in its own partial at its own specificity (see `_action_row.scss`,
|
|
49
|
+
// `_expander_row.scss`); a global default can only ever be the losing side of that.
|
|
34
50
|
.adw-row-subtitle {
|
|
35
51
|
font-size: var(--font-size-small);
|
|
36
52
|
opacity: var(--dim-opacity);
|
|
@@ -42,10 +58,25 @@ adw-combo-row {
|
|
|
42
58
|
|
|
43
59
|
// Trailing edit pencil shared by editable rows (entry/password) — the
|
|
44
60
|
// Adw.EntryRow edit affordance. Dimmed; clicking focuses the entry.
|
|
61
|
+
//
|
|
62
|
+
// The BOX is upstream's, rule for rule: `row.entry > .editable-area > .edit-icon`
|
|
63
|
+
// (_lists.scss:194-196) is a 24px floor with 5px of padding around the glyph inside it. The
|
|
64
|
+
// glyph stays 16px and centred here (`.adw-icon` centres its mask), so the box settles at
|
|
65
|
+
// exactly that 24px — GTK's own measures 40x34 because the toolkit's `adw-entry-edit-symbolic`
|
|
66
|
+
// is 30x24. That gap is the theme's ICON SIZE, not this rule.
|
|
67
|
+
//
|
|
68
|
+
// NOT PORTED from the same block, each for a reason rather than for want of a selector:
|
|
69
|
+
// · the 6px margin-start on `.edit-icon` (:198-200). These rows already keep the pencil off
|
|
70
|
+
// the text with `gap: var(--spacing-m)` = 12px, which is upstream's own arithmetic — 6px
|
|
71
|
+
// of `.editable-area` padding plus this 6px — so adding the margin would make it 18px.
|
|
72
|
+
// · the same 24px box on `.indicator`, which is only on the host through a per-subclass
|
|
73
|
+
// class (`${prefix}-indicator`); the caps-lock warning it belongs to needs a real Caps
|
|
74
|
+
// Lock source, which this port has no event for.
|
|
45
75
|
.adw-row-edit {
|
|
46
76
|
flex-shrink: 0;
|
|
47
|
-
width:
|
|
48
|
-
height:
|
|
77
|
+
min-width: 24px;
|
|
78
|
+
min-height: 24px;
|
|
79
|
+
padding: 5px;
|
|
49
80
|
color: var(--card-fg-color);
|
|
50
81
|
opacity: 0.55;
|
|
51
82
|
cursor: pointer;
|