@gjsify/adwaita-nativescript 0.64.20 → 0.64.21
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/lib/esm/index.js +1 -1
- package/lib/esm/namespace/adw.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/platform-host.js +1 -1
- package/lib/esm/widgets/accent-theme.js +1 -1
- package/lib/esm/widgets/adw-about-dialog.js +3 -3
- package/lib/esm/widgets/adw-action-row.js +1 -1
- package/lib/esm/widgets/adw-bundled-icons.js +1 -0
- package/lib/esm/widgets/adw-button-row.js +1 -1
- package/lib/esm/widgets/adw-entry-row.js +1 -1
- package/lib/esm/widgets/adw-expander-row.js +1 -1
- package/lib/esm/widgets/adw-status-page.js +1 -1
- package/lib/esm/widgets/gtk-button.js +1 -1
- package/lib/esm/widgets/gtk-check-button.js +1 -1
- package/lib/esm/widgets/gtk-scrolled-window.js +1 -1
- package/lib/esm/widgets/icons.android.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/named-colors-theme.js +1 -1
- package/lib/esm/widgets/status-icon-color.js +1 -0
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/types/scrolled-window-height.spec.d.ts +1 -0
- package/lib/types/widgets/adw-about-dialog.d.ts +36 -7
- package/lib/types/widgets/adw-action-row.d.ts +9 -0
- package/lib/types/widgets/adw-alert-dialog.d.ts +4 -0
- package/lib/types/widgets/adw-avatar.d.ts +4 -0
- package/lib/types/widgets/adw-banner.d.ts +4 -0
- package/lib/types/widgets/adw-bottom-sheet.d.ts +4 -0
- package/lib/types/widgets/adw-bundled-icons.d.ts +7 -0
- package/lib/types/widgets/adw-button-content.d.ts +4 -0
- package/lib/types/widgets/adw-carousel.d.ts +4 -0
- package/lib/types/widgets/adw-clamp.d.ts +4 -0
- package/lib/types/widgets/adw-data-grid.d.ts +4 -0
- package/lib/types/widgets/adw-header-bar.d.ts +4 -0
- package/lib/types/widgets/adw-image-button.d.ts +4 -0
- package/lib/types/widgets/adw-navigation-page.d.ts +4 -0
- package/lib/types/widgets/adw-navigation-view.d.ts +4 -0
- package/lib/types/widgets/adw-preferences-group.d.ts +4 -0
- package/lib/types/widgets/adw-preferences-page.d.ts +4 -0
- package/lib/types/widgets/adw-shortcut-label.d.ts +4 -0
- package/lib/types/widgets/adw-sidebar.d.ts +4 -0
- package/lib/types/widgets/adw-slider-row.d.ts +4 -0
- package/lib/types/widgets/adw-spinner.d.ts +4 -0
- package/lib/types/widgets/adw-split-button.d.ts +4 -0
- package/lib/types/widgets/adw-status-page.d.ts +9 -0
- package/lib/types/widgets/adw-tab-view.d.ts +4 -0
- package/lib/types/widgets/adw-toast-overlay.d.ts +4 -0
- package/lib/types/widgets/adw-toggle-group.d.ts +4 -0
- package/lib/types/widgets/adw-toggle.d.ts +4 -0
- package/lib/types/widgets/adw-toolbar-view.d.ts +4 -0
- package/lib/types/widgets/adw-view-stack.d.ts +4 -0
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +4 -0
- package/lib/types/widgets/adw-window-title.d.ts +4 -0
- package/lib/types/widgets/adw-wrap-box.d.ts +4 -0
- package/lib/types/widgets/carousel-indicator-base.d.ts +4 -0
- package/lib/types/widgets/gtk-action-bar.d.ts +4 -0
- package/lib/types/widgets/gtk-button.d.ts +4 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +4 -0
- package/lib/types/widgets/gtk-entry.d.ts +4 -0
- package/lib/types/widgets/gtk-image.d.ts +4 -0
- package/lib/types/widgets/gtk-label.d.ts +4 -0
- package/lib/types/widgets/gtk-popover-menu.d.ts +4 -0
- package/lib/types/widgets/gtk-scrolled-window.d.ts +3 -0
- package/lib/types/widgets/gtk-stack.d.ts +4 -0
- package/lib/types/widgets/gtk-text-view.d.ts +4 -0
- package/lib/types/widgets/signals.d.ts +4 -0
- package/lib/types/widgets/split-view-base.d.ts +4 -0
- package/lib/types/widgets/stack-page.d.ts +4 -0
- package/lib/types/widgets/status-icon-color.d.ts +13 -0
- package/lib/types/widgets/status-icon-color.spec.d.ts +2 -0
- package/lib/types/widgets/styled-layout-base.d.ts +4 -0
- package/lib/types/widgets/view-stack-page.d.ts +4 -0
- package/lib/types/widgets/view-switcher-base.d.ts +4 -0
- package/lib/types/widgets/widget-layout.d.ts +8 -0
- package/package.json +13 -13
- package/src/theme/adwaita.css +28 -17
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{adwaitaNsAccentCss as e}from"./accent-theme.js";import{adwaitaAccent as t,formatAdwRgb as n,parseAdwRgb as r}from"@gjsify/adwaita-core";const i=[{selector:`.adw-window, Page.adw-window`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-window, Page.adw-window`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.boxed-list, .adw-preferences-group-listbox`,property:`background-color`,variable:`card-bg-color`,fallback:`#ffffff`},{selector:`.card, .adw-card`,property:`background-color`,variable:`card-bg-color`,fallback:`#ffffff`},{selector:`.adw-action-row`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-row-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-preferences-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-entry-field, .adw-entry-input`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-password-field`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-drop-down-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-spin-value`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-slider-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-expander-disclosure`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-button`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button.flat`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-banner-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-banner-button`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-window-title-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-header-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-action-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-toolbar-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-toolbar-view-top`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-toolbar-view-bottom`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-toolbar-view-top.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-toolbar-view-bottom.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-viewswitcherbar-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-data-grid-cell`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-spinner`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-status-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-status-page-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button-content-icon`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button-content-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-split-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-toggle-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-view-switcher-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-tab-view-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-navigation-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-navigation-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-navigation-split-view, .adw-overlay-split-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-split-view-sidebar`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#ebebed`},{selector:`.adw-split-view-content`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-overlay-active`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#ebebed`},{selector:`.adw-sidebar`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#ebebed`},{selector:`.adw-sidebar-row-title`,property:`color`,variable:`sidebar-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-bottom-sheet-panel`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#ffffff`},{selector:`.adw-check-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-frame-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-text-view`,property:`background-color`,variable:`view-bg-color`,fallback:`#ffffff`},{selector:`.adw-text-view-input`,property:`color`,variable:`view-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-about-dialog-card, .adw-preferences-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#fafafb`},{selector:`.adw-about-dialog-link, .adw-about-dialog-links-item`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-about-dialog-copy, .adw-about-dialog-close`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#fafafb`},{selector:`.adw-shortcut-label-cap-text`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-shortcut-label-side`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-shortcut-label .dimmed`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.ns-dark .adw-window, .ns-dark.adw-window, Page.ns-dark.adw-window`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-window, .ns-dark.adw-window, Page.ns-dark.adw-window`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .boxed-list, .ns-dark .adw-preferences-group-listbox`,property:`background-color`,variable:`card-bg-color`,fallback:`#34343a`},{selector:`.ns-dark .boxed-list, .ns-dark .adw-preferences-group-listbox`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .card, .ns-dark .adw-card`,property:`background-color`,variable:`card-bg-color`,fallback:`#34343a`},{selector:`.ns-dark .card, .ns-dark .adw-card`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-row, .ns-dark .adw-action-row`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-row-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-preferences-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-entry-field, .ns-dark .adw-entry-input, .ns-dark .adw-password-field`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-drop-down-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-spin-button`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-spin-value`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-slider-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-expander-disclosure`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-button`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-button.flat`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-button-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-banner-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-banner-button`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-window-title-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-header-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-action-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-toolbar-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-toolbar-view-top`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-toolbar-view-bottom`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-toolbar-view-top.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-toolbar-view-bottom.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-viewswitcherbar-button-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-data-grid-cell`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-spinner`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-status-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-status-page-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-button-content-icon, .ns-dark .adw-button-content-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-split-button-action, .ns-dark .adw-split-button-dropdown`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-view-switcher-button-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-tab-view-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-navigation-view, .ns-dark .adw-navigation-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-navigation-split-view, .ns-dark .adw-overlay-split-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-split-view-sidebar, .ns-dark .adw-overlay-active`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#2a2a2e`},{selector:`.ns-dark .adw-split-view-content`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-sidebar`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#2a2a2e`},{selector:`.ns-dark .adw-sidebar-row-title`,property:`color`,variable:`sidebar-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-bottom-sheet-panel`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-check-label, .ns-dark .adw-frame-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-text-view`,property:`background-color`,variable:`view-bg-color`,fallback:`#2a2a2e`},{selector:`.ns-dark .adw-text-view-input`,property:`color`,variable:`view-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-about-dialog-card, .ns-dark .adw-preferences-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-about-dialog-name, .ns-dark .adw-preferences-dialog-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-about-dialog-link, .ns-dark .adw-about-dialog-links-item`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-about-dialog-copy, .ns-dark .adw-about-dialog-close`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-shortcut-label-cap-text, .ns-dark .adw-shortcut-label-side, .ns-dark .adw-shortcut-label .dimmed`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`}],a=[`accent-bg-color`,`accent-color`],o=new Set(i.map(e=>e.variable)),s=new Set([...o,...a]),c=/^(?:#[0-9a-f]{3,8}|rgba?\([\d\s.,%/]+\))$/i;function parseAdwaitaRootColors(e){let t=new Map,i=e.replace(/\/\*[\s\S]*?\*\//g,``);for(let e of i.matchAll(/:root\s*\{([^{}]*)\}/g))for(let[,i,a]of e[1].matchAll(/--([\w-]+)\s*:\s*([^;]+?)\s*(?:;|$)/g)){let e=a.trim();if(c.test(e))if(i===`accent-bg-color`||i===`accent-color`){let a=r(e);if(!a)continue;t.set(i,n(a))}else t.set(i,e)}return t}function knownOnly(e){let t=new Map;for(let[n,r]of e)s.has(n)&&t.set(n,r);return t}function adwaitaNsSurfaceCss(e){return i.map(t=>`${t.selector} { ${t.property}: ${e.get(t.variable)??t.fallback}; }`).join(`
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{adwaitaNsAccentCss as e}from"./accent-theme.js";import{adwaitaAccent as t,formatAdwRgb as n,parseAdwRgb as r}from"@gjsify/adwaita-core";const i=[{selector:`.adw-window, Page.adw-window`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-window, Page.adw-window`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.boxed-list, .adw-preferences-group-listbox`,property:`background-color`,variable:`card-bg-color`,fallback:`#ffffff`},{selector:`.card, .adw-card`,property:`background-color`,variable:`card-bg-color`,fallback:`#ffffff`},{selector:`.adw-action-row`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-row-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-preferences-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-entry-field, .adw-entry-input`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-password-field`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-drop-down-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-spin-value`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-slider-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-expander-disclosure`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-button`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button.flat`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-banner-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-banner-button`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-window-title-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-header-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-action-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-toolbar-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-toolbar-view-top`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-toolbar-view-bottom`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-toolbar-view-top.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-toolbar-view-bottom.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-viewswitcherbar-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-data-grid-cell`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-spinner`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-status-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-status-page-title`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button-content-icon`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-button-content-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-split-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-toggle-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-view-switcher-button-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-tab-view-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#ffffff`},{selector:`.adw-navigation-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-navigation-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-navigation-split-view, .adw-overlay-split-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-split-view-sidebar`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#ebebed`},{selector:`.adw-split-view-content`,property:`background-color`,variable:`window-bg-color`,fallback:`#fafafb`},{selector:`.adw-overlay-active`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#ebebed`},{selector:`.adw-sidebar`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#ebebed`},{selector:`.adw-sidebar-row-title`,property:`color`,variable:`sidebar-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-bottom-sheet-panel`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#ffffff`},{selector:`.adw-check-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-frame-label`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-text-view`,property:`background-color`,variable:`view-bg-color`,fallback:`#ffffff`},{selector:`.adw-text-view-input`,property:`color`,variable:`view-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-about-dialog-card, .adw-preferences-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#fafafb`},{selector:`.adw-about-dialog-back`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-about-dialog-copy, .adw-about-dialog-close`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#fafafb`},{selector:`.adw-shortcut-label-cap-text`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-shortcut-label-side`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.adw-shortcut-label .dimmed`,property:`color`,variable:`window-fg-color`,fallback:`rgba(0, 0, 0, 0.8)`},{selector:`.ns-dark .adw-window, .ns-dark.adw-window, Page.ns-dark.adw-window`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-window, .ns-dark.adw-window, Page.ns-dark.adw-window`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .boxed-list, .ns-dark .adw-preferences-group-listbox`,property:`background-color`,variable:`card-bg-color`,fallback:`#34343a`},{selector:`.ns-dark .boxed-list, .ns-dark .adw-preferences-group-listbox`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .card, .ns-dark .adw-card`,property:`background-color`,variable:`card-bg-color`,fallback:`#34343a`},{selector:`.ns-dark .card, .ns-dark .adw-card`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-row, .ns-dark .adw-action-row`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-row-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-preferences-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-entry-field, .ns-dark .adw-entry-input, .ns-dark .adw-password-field`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-drop-down-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-spin-button`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-spin-value`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-slider-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-expander-disclosure`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-button`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-button.flat`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-button-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-banner-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-banner-button`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-window-title-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-header-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-action-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-toolbar-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-toolbar-view-top`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-toolbar-view-bottom`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-toolbar-view-top.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-toolbar-view-bottom.raised`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-viewswitcherbar-button-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-data-grid-cell`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-spinner`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-status-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-status-page-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-button-content-icon, .ns-dark .adw-button-content-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-split-button-action, .ns-dark .adw-split-button-dropdown`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-view-switcher-button-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-tab-view-bar`,property:`background-color`,variable:`headerbar-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-navigation-view, .ns-dark .adw-navigation-page`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-navigation-split-view, .ns-dark .adw-overlay-split-view`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-split-view-sidebar, .ns-dark .adw-overlay-active`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#2a2a2e`},{selector:`.ns-dark .adw-split-view-content`,property:`background-color`,variable:`window-bg-color`,fallback:`#222226`},{selector:`.ns-dark .adw-sidebar`,property:`background-color`,variable:`sidebar-bg-color`,fallback:`#2a2a2e`},{selector:`.ns-dark .adw-sidebar-row-title`,property:`color`,variable:`sidebar-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-bottom-sheet-panel`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-check-label, .ns-dark .adw-frame-label`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-text-view`,property:`background-color`,variable:`view-bg-color`,fallback:`#2a2a2e`},{selector:`.ns-dark .adw-text-view-input`,property:`color`,variable:`view-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-about-dialog-card, .ns-dark .adw-preferences-dialog-card`,property:`background-color`,variable:`dialog-bg-color`,fallback:`#2e2e32`},{selector:`.ns-dark .adw-about-dialog-name, .ns-dark .adw-preferences-dialog-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-about-dialog-back, .ns-dark .adw-about-dialog-page-title`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-about-dialog-copy, .ns-dark .adw-about-dialog-close`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`},{selector:`.ns-dark .adw-shortcut-label-cap-text, .ns-dark .adw-shortcut-label-side, .ns-dark .adw-shortcut-label .dimmed`,property:`color`,variable:`window-fg-color`,fallback:`#ffffff`}],a=[`accent-bg-color`,`accent-color`],o=new Set(i.map(e=>e.variable)),s=new Set([...o,...a]),c=/^(?:#[0-9a-f]{3,8}|rgba?\([\d\s.,%/]+\))$/i;function parseAdwaitaRootColors(e){let t=new Map,i=e.replace(/\/\*[\s\S]*?\*\//g,``);for(let e of i.matchAll(/:root\s*\{([^{}]*)\}/g))for(let[,i,a]of e[1].matchAll(/--([\w-]+)\s*:\s*([^;]+?)\s*(?:;|$)/g)){let e=a.trim();if(c.test(e))if(i===`accent-bg-color`||i===`accent-color`){let a=r(e);if(!a)continue;t.set(i,n(a))}else t.set(i,e)}return t}function knownOnly(e){let t=new Map;for(let[n,r]of e)s.has(n)&&t.set(n,r);return t}function adwaitaNsSurfaceCss(e){return i.map(t=>`${t.selector} { ${t.property}: ${e.get(t.variable)??t.fallback}; }`).join(`
|
|
2
2
|
`)}function adwaitaNsNamedColorsCss(n,r=!0){let i=adwaitaNsSurfaceCss(n);return r?`${i}\n${e(n.get(`accent-bg-color`)??t(),{standaloneDark:n.get(`accent-color`)})}`:i}function createNamedColorsPublisher(){let e=null,t=!1,n=!1;return{update(r,i=!1){let a=knownOnly(r);if(a.size===0&&!t)return null;let o=a.has(`accent-bg-color`)||a.has(`accent-color`),s=adwaitaNsNamedColorsCss(a,o||n);return n=o,t=a.size>0,s===e&&!i?null:(e=s,s)}}}export{a as ADWAITA_NS_ACCENT_VARIABLES,i as ADWAITA_NS_NAMED_COLOR_RULES,adwaitaNsNamedColorsCss,adwaitaNsSurfaceCss,createNamedColorsPublisher,parseAdwaitaRootColors};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{formatAdwRgb as e,parseAdwRgb as t}from"@gjsify/adwaita-core";const n=.5;let r=null;const i=new Set;function publishWindowFg(e){if(e!==r){r=e;for(let e of i)e()}}function publishedWindowFg(){return r}function onWindowFgChanged(e){return i.add(e),()=>{i.delete(e)}}function dimmedIconColor(r,i,a=n){let o=(r===null?null:t(r))??t(i)??{red:0,green:0,blue:0};return`#${Math.round(Math.min(1,Math.max(0,a))*255).toString(16).padStart(2,`0`)}${e(o).slice(1)}`}export{n as STATUS_ICON_OPACITY,dimmedIconColor,onWindowFgChanged,publishWindowFg,publishedWindowFg};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{GTK_ALIGN as t,NS_HORIZONTAL_ALIGNMENT as n,NS_VERTICAL_ALIGNMENT as r}from"./gtk-align.js";import{cssTypeOf as i}from"./css-names.js";import{installProvidedNameSelector as a}from"../name-selector.js";import{gtkBuilderInteger as o,xmlBoolean as s}from"./xml-values.js";import{nsAlignment as c}from"./construct-props.js";import{lengthValue as l}from"./ns-length.js";import{insertActionGroup as u}from"./actions.js";import{focusView as d,isViewFocused as f}from"../window-source.js";import{applyNativeTooltip as p}from"./native-tooltip.js";import{isMapped as m}from"./widget-mapping.js";import{Point as h}from"@gjsify/adwaita-core";const g=`notify::hexpand`,_=`notify::vexpand`,v=32767;function laidOut(e,t){let n=viewOf(e);if(n!==null)return n;throw TypeError(`${e.constructor.name} is not laid out by a parent, so it has no '${t}'. The GtkWidget layout properties reach views only; this class extends Observable.`)}function viewOf(e){return`horizontalAlignment`in e?e:null}const y=[0,1,2];function isWidget(e){return typeof e.get_first_child==`function`}function childrenOf(e){let t=[];return e.eachChildView?.(e=>(isWidget(e)?t.push(e):t.push(...childrenOf(e)),!0)),t}function parentOf(e){let t=e.parent??null;for(;t!==null&&!isWidget(t);)t=t.parent??null;return t}function topOf(e){let t=e;for(;t.parent;)t=t.parent;return t}function computePointOf(e,t,n){let r=e,i=t;if(topOf(r)!==topOf(i))return[!1,new h];let a=r.getLocationInWindow?.(),o=i.getLocationInWindow?.();return!a||!o?[!1,new h]:[!0,new h({x:n.x+(a.x-o.x),y:n.y+(a.y-o.y)})]}function siblingOf(e,t){let n=parentOf(e);if(n===null)return null;let r=childrenOf(n);return r[r.indexOf(e)+t]??null}function alignNick(e,n){if(typeof e==`string`&&Object.hasOwn(t,e))return e;let r=o(e);if(r!==void 0){let e=Object.keys(t).find(e=>t[e]===r);if(e!==void 0)return e}throw TypeError(`'${String(e)}' is not a Gtk.Align, so it cannot be '${n}'. The members are ${Object.keys(t).join(`, `)}; NativeScript's own alignment words go to ${n===`halign`?`horizontalAlignment`:`verticalAlignment`}.`)}function readAlign(e,t,n){for(let[n,r]of Object.entries(t))if(r===e)return n;return n!==null&&e===`left`?n?`end`:`start`:n!==null&&e===`right`?n?`start`:`end`:`fill`}function marginOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=0&&n<=v)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${v}.`)}function sizeRequestOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=-1&&n<=2147483647)return n;throw TypeError(`'${String(e)}' is not a size request: '${t}' takes an integer from -1 (unset) upward.`)}function readSizeRequest(e){let t=l(e);return t!==null&&t>0?Math.round(t):-1}const b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap;function expandOf(e){let t=w.get(e);return t===void 0&&(t={h:!1,v:!1},w.set(e,t)),t}function withGtkWidgetLayout(t){class WithGtkWidgetLayout extends t{get cssType(){return i(this.constructor)??Reflect.get(t.prototype,`cssType`,this)}set cssType(e){}get halign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.horizontalAlignment,n,e.style?.direction===`rtl`)}set halign(e){let t=laidOut(this,`halign`);t.horizontalAlignment=c(alignNick(e,`halign`),`horizontal`)}get valign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.verticalAlignment,r,null)}set valign(e){let t=laidOut(this,`valign`);t.verticalAlignment=c(alignNick(e,`valign`),`vertical`)}get hexpand(){return w.get(this)?.h??!1}set hexpand(e){laidOut(this,`hexpand`);let t=expandOf(this),n=s(e,t.h);n!==t.h&&(t.h=n,this.notify({eventName:g,object:this}))}get vexpand(){return w.get(this)?.v??!1}set vexpand(e){laidOut(this,`vexpand`);let t=expandOf(this),n=s(e,t.v);n!==t.v&&(t.v=n,this.notify({eventName:_,object:this}))}get marginStart(){let e=viewOf(this);return e===null?0:l(e.style?.direction===`rtl`?e.marginRight:e.marginLeft)??0}set marginStart(e){let t=laidOut(this,`marginStart`),n=marginOf(e,`marginStart`);t.style?.direction===`rtl`?t.marginRight=n:t.marginLeft=n}get marginEnd(){let e=viewOf(this);return e===null?0:l(e.style?.direction===`rtl`?e.marginLeft:e.marginRight)??0}set marginEnd(e){let t=laidOut(this,`marginEnd`),n=marginOf(e,`marginEnd`);t.style?.direction===`rtl`?t.marginLeft=n:t.marginRight=n}get visible(){let e=viewOf(this);return e===null?!0:e.visibility===`visible`}set visible(e){let t=laidOut(this,`visible`);t.visibility=s(e,this.visible)?`visible`:`collapse`}get sensitive(){let e=viewOf(this);return e===null?!0:e.isEnabled!==!1}set sensitive(e){let t=laidOut(this,`sensitive`);t.isEnabled=s(e,this.sensitive)}get name(){return b.get(this)??e(this)}set name(e){let t=laidOut(this,`name`);a();let n=b.get(this),r=e??``;r===``?b.delete(this):b.set(this,r),(t.id===void 0||t.id===n)&&(t.id=r===``?void 0:r)}get_visible(){return this.visible}set_visible(e){this.visible=e}get_mapped(){return m(this)}set_direction(e){if(!y.includes(e))throw TypeError(`${e} is not a valid value for enum argument dir`);let t=this.style;t!==void 0&&(t.direction=e===0?``:e===2?`rtl`:`ltr`)}get_direction(){return this.style?.direction===`rtl`?2:1}get_first_child(){return childrenOf(this)[0]??null}get_last_child(){return childrenOf(this).at(-1)??null}get_next_sibling(){return siblingOf(this,1)}get_prev_sibling(){return siblingOf(this,-1)}get_parent(){return parentOf(this)}get_width(){return Math.round(this.getActualSize?.().width??0)}get_height(){return Math.round(this.getActualSize?.().height??0)}compute_point(e,t){return computePointOf(this,e,t)}insert_action_group(e,t){u(this,e,t)}get focusable(){return S.get(this)??!1}set focusable(e){let t=laidOut(this,`focusable`),n=s(e,S.get(this)??!1);S.set(this,n),t.nativeViewProtected?.setFocusable?.(n)}get focusOnClick(){return C.get(this)??!0}set focusOnClick(e){C.set(this,s(e,C.get(this)??!0))}get_focus_on_click(){return this.focusOnClick}set_focus_on_click(e){this.focusOnClick=e}grab_focus(){let e=laidOut(this,`grab_focus`);return d(e),f(e)}get tooltipText(){return x.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;(t.accessibilityHint??``)===(x.get(this)??``)&&(t.accessibilityHint=n),x.set(this,n),p(this,n)}get tooltip_text(){return this.tooltipText}set tooltip_text(e){this.tooltipText=e}get_tooltip_text(){return this.tooltipText}set_tooltip_text(e){this.tooltipText=e}get widthRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minWidth)}set widthRequest(e){let t=laidOut(this,`widthRequest`);t.minWidth=Math.max(0,sizeRequestOf(e,`widthRequest`))}get heightRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minHeight)}set heightRequest(e){let t=laidOut(this,`heightRequest`);t.minHeight=Math.max(0,sizeRequestOf(e,`heightRequest`))}}return WithGtkWidgetLayout}export{g as NOTIFY_HEXPAND,_ as NOTIFY_VEXPAND,withGtkWidgetLayout};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{GTK_ALIGN as t,NS_HORIZONTAL_ALIGNMENT as n,NS_VERTICAL_ALIGNMENT as r}from"./gtk-align.js";import{cssTypeOf as i}from"./css-names.js";import{installProvidedNameSelector as a}from"../name-selector.js";import{gtkBuilderInteger as o,xmlBoolean as s}from"./xml-values.js";import{nsAlignment as c}from"./construct-props.js";import{lengthValue as l}from"./ns-length.js";import{insertActionGroup as u}from"./actions.js";import{focusView as d,isViewFocused as f}from"../window-source.js";import{applyNativeTooltip as p}from"./native-tooltip.js";import{isMapped as m}from"./widget-mapping.js";import{Point as h}from"@gjsify/adwaita-core";const g=`notify::hexpand`,_=`notify::vexpand`,v=32767;function laidOut(e,t){let n=viewOf(e);if(n!==null)return n;throw TypeError(`${e.constructor.name} is not laid out by a parent, so it has no '${t}'. The GtkWidget layout properties reach views only; this class extends Observable.`)}function viewOf(e){return`horizontalAlignment`in e?e:null}const y=[0,1,2];function isWidget(e){return typeof e.get_first_child==`function`}function childrenOf(e){let t=[];return e.eachChildView?.(e=>(isWidget(e)?t.push(e):t.push(...childrenOf(e)),!0)),t}function parentOf(e){let t=e.parent??null;for(;t!==null&&!isWidget(t);)t=t.parent??null;return t}function topOf(e){let t=e;for(;t.parent;)t=t.parent;return t}function computePointOf(e,t,n){let r=e,i=t;if(topOf(r)!==topOf(i))return[!1,new h];let a=r.getLocationInWindow?.(),o=i.getLocationInWindow?.();return!a||!o?[!1,new h]:[!0,new h({x:n.x+(a.x-o.x),y:n.y+(a.y-o.y)})]}function siblingOf(e,t){let n=parentOf(e);if(n===null)return null;let r=childrenOf(n);return r[r.indexOf(e)+t]??null}function alignNick(e,n){if(typeof e==`string`&&Object.hasOwn(t,e))return e;let r=o(e);if(r!==void 0){let e=Object.keys(t).find(e=>t[e]===r);if(e!==void 0)return e}throw TypeError(`'${String(e)}' is not a Gtk.Align, so it cannot be '${n}'. The members are ${Object.keys(t).join(`, `)}; NativeScript's own alignment words go to ${n===`halign`?`horizontalAlignment`:`verticalAlignment`}.`)}function readAlign(e,t,n){for(let[n,r]of Object.entries(t))if(r===e)return n;return n!==null&&e===`left`?n?`end`:`start`:n!==null&&e===`right`?n?`start`:`end`:`fill`}function marginOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=0&&n<=v)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${v}.`)}function sizeRequestOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=-1&&n<=2147483647)return n;throw TypeError(`'${String(e)}' is not a size request: '${t}' takes an integer from -1 (unset) upward.`)}function readSizeRequest(e){let t=l(e);return t!==null&&t>0?Math.round(t):-1}const b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap;function expandOf(e){let t=w.get(e);return t===void 0&&(t={h:!1,v:!1},w.set(e,t)),t}function withGtkWidgetLayout(t){class WithGtkWidgetLayout extends t{get cssType(){return i(this.constructor)??Reflect.get(t.prototype,`cssType`,this)}set cssType(e){}get halign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.horizontalAlignment,n,e.style?.direction===`rtl`)}set halign(e){let t=laidOut(this,`halign`);t.horizontalAlignment=c(alignNick(e,`halign`),`horizontal`)}get valign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.verticalAlignment,r,null)}set valign(e){let t=laidOut(this,`valign`);t.verticalAlignment=c(alignNick(e,`valign`),`vertical`)}get hexpand(){return w.get(this)?.h??!1}set hexpand(e){laidOut(this,`hexpand`);let t=expandOf(this),n=s(e,t.h);n!==t.h&&(t.h=n,this.notify({eventName:g,object:this}))}get vexpand(){return w.get(this)?.v??!1}set vexpand(e){laidOut(this,`vexpand`);let t=expandOf(this),n=s(e,t.v);n!==t.v&&(t.v=n,this.notify({eventName:_,object:this}))}get marginStart(){let e=viewOf(this);return e===null?0:l(e.style?.direction===`rtl`?e.marginRight:e.marginLeft)??0}set marginStart(e){let t=laidOut(this,`marginStart`),n=marginOf(e,`marginStart`);t.style?.direction===`rtl`?t.marginRight=n:t.marginLeft=n}get marginEnd(){let e=viewOf(this);return e===null?0:l(e.style?.direction===`rtl`?e.marginLeft:e.marginRight)??0}set marginEnd(e){let t=laidOut(this,`marginEnd`),n=marginOf(e,`marginEnd`);t.style?.direction===`rtl`?t.marginLeft=n:t.marginRight=n}get visible(){let e=viewOf(this);return e===null?!0:e.visibility===`visible`}set visible(e){let t=laidOut(this,`visible`);t.visibility=s(e,this.visible)?`visible`:`collapse`}get sensitive(){let e=viewOf(this);return e===null?!0:e.isEnabled!==!1}set sensitive(e){let t=laidOut(this,`sensitive`);t.isEnabled=s(e,this.sensitive)}get name(){return b.get(this)??e(this)}set name(e){let t=laidOut(this,`name`);a();let n=b.get(this),r=e??``;r===``?b.delete(this):b.set(this,r),(t.id===void 0||t.id===n)&&(t.id=r===``?void 0:r)}get_visible(){return this.visible}set_visible(e){this.visible=e}get_mapped(){return m(this)}set_direction(e){if(!y.includes(e))throw TypeError(`${e} is not a valid value for enum argument dir`);let t=this.style;t!==void 0&&(t.direction=e===0?``:e===2?`rtl`:`ltr`)}get_direction(){return this.style?.direction===`rtl`?2:1}get_first_child(){return childrenOf(this)[0]??null}get_last_child(){return childrenOf(this).at(-1)??null}get_next_sibling(){return siblingOf(this,1)}get_prev_sibling(){return siblingOf(this,-1)}get_parent(){return parentOf(this)}get_width(){return Math.round(this.getActualSize?.().width??0)}get_height(){return Math.round(this.getActualSize?.().height??0)}compute_point(e,t){return computePointOf(this,e,t)}insert_action_group(e,t){u(this,e,t)}get focusable(){return S.get(this)??!1}set focusable(e){let t=laidOut(this,`focusable`),n=s(e,S.get(this)??!1);S.set(this,n),t.nativeViewProtected?.setFocusable?.(n)}get focusOnClick(){return C.get(this)??!0}set focusOnClick(e){C.set(this,s(e,C.get(this)??!0))}get_focus_on_click(){return this.focusOnClick}set_focus_on_click(e){this.focusOnClick=e}grab_focus(){let e=laidOut(this,`grab_focus`);return d(e),f(e)}get tooltipText(){return x.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;(t.accessibilityHint??``)===(x.get(this)??``)&&(t.accessibilityHint=n),x.set(this,n),p(this,n)}get tooltip_text(){return this.tooltipText}set tooltip_text(e){this.tooltipText=e}get_tooltip_text(){return this.tooltipText}set_tooltip_text(e){this.tooltipText=e}get widthRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minWidth)}set widthRequest(e){let t=laidOut(this,`widthRequest`);t.minWidth=Math.max(0,sizeRequestOf(e,`widthRequest`))}get heightRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minHeight)}set heightRequest(e){let t=laidOut(this,`heightRequest`);t.minHeight=Math.max(0,sizeRequestOf(e,`heightRequest`))}get width_request(){return this.widthRequest}set width_request(e){this.widthRequest=e}get height_request(){return this.heightRequest}set height_request(e){this.heightRequest=e}}return WithGtkWidgetLayout}export{g as NOTIFY_HEXPAND,_ as NOTIFY_VEXPAND,withGtkWidgetLayout};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GtkScrolledWindowHeightNsTest: () => Promise<void>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Button, GridLayout, Label, StackLayout, type EventData } from '@nativescript/core';
|
|
2
|
+
import { AdwActionRow } from './adw-action-row.js';
|
|
3
|
+
import { AdwPreferencesGroup } from './adw-preferences-group.js';
|
|
2
4
|
import { GtkImage } from './gtk-image.js';
|
|
3
5
|
import { type ConstructProps } from './construct-props.js';
|
|
4
6
|
import type { View } from '@nativescript/core';
|
|
@@ -42,6 +44,10 @@ declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
|
|
|
42
44
|
set widthRequest(value: number | string);
|
|
43
45
|
get heightRequest(): number;
|
|
44
46
|
set heightRequest(value: number | string);
|
|
47
|
+
get width_request(): number;
|
|
48
|
+
set width_request(value: number | string);
|
|
49
|
+
get height_request(): number;
|
|
50
|
+
set height_request(value: number | string);
|
|
45
51
|
get_visible(): boolean;
|
|
46
52
|
set_visible(visible: boolean): void;
|
|
47
53
|
get_mapped(): boolean;
|
|
@@ -76,21 +82,36 @@ declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
|
|
|
76
82
|
export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
77
83
|
static readonly GTypeName: string;
|
|
78
84
|
protected readonly _card: StackLayout;
|
|
85
|
+
protected readonly _header: StackLayout;
|
|
86
|
+
protected readonly _mainBody: StackLayout;
|
|
79
87
|
protected readonly _appIcon: GtkImage;
|
|
80
88
|
protected readonly _nameLabel: Label;
|
|
81
89
|
protected readonly _versionLabel: Label;
|
|
82
90
|
protected readonly _developerLabel: Label;
|
|
83
91
|
protected readonly _commentsLabel: Label;
|
|
84
|
-
protected readonly
|
|
85
|
-
protected readonly
|
|
86
|
-
protected readonly
|
|
92
|
+
protected readonly _whatsNewRow: AdwActionRow;
|
|
93
|
+
protected readonly _detailsRow: AdwActionRow;
|
|
94
|
+
protected readonly _websiteRow: AdwActionRow;
|
|
95
|
+
protected readonly _supportRow: AdwActionRow;
|
|
96
|
+
protected readonly _issueRow: AdwActionRow;
|
|
97
|
+
protected readonly _troubleshootingRow: AdwActionRow;
|
|
98
|
+
protected readonly _creditsRow: AdwActionRow;
|
|
99
|
+
protected readonly _legalRow: AdwActionRow;
|
|
100
|
+
protected readonly _acknowledgementsRow: AdwActionRow;
|
|
101
|
+
protected readonly _detailsWebsiteRow: AdwActionRow;
|
|
102
|
+
protected readonly _detailsGroup: AdwPreferencesGroup;
|
|
103
|
+
protected readonly _supportGroup: AdwPreferencesGroup;
|
|
104
|
+
protected readonly _creditsLegalGroup: AdwPreferencesGroup;
|
|
105
|
+
protected readonly _linksGroup: AdwPreferencesGroup;
|
|
87
106
|
protected readonly _creditsLabel: Label;
|
|
88
107
|
protected readonly _acknowledgementsLabel: Label;
|
|
89
108
|
protected readonly _legalLabel: Label;
|
|
90
109
|
protected readonly _releaseNotesLabel: Label;
|
|
91
|
-
protected readonly _linksBox: StackLayout;
|
|
92
110
|
protected readonly _debugInfoLabel: Label;
|
|
93
111
|
protected readonly _copyButton: Button;
|
|
112
|
+
/** The `add_link` rows currently in `_linksGroup`, after the website row. */
|
|
113
|
+
protected _linkRows: AdwActionRow[];
|
|
114
|
+
private readonly _pages;
|
|
94
115
|
private _applicationName;
|
|
95
116
|
private _applicationIcon;
|
|
96
117
|
private _developerName;
|
|
@@ -118,15 +139,23 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
|
118
139
|
/** The window `present (parent)` mounted this in, so closing can take it back out. */
|
|
119
140
|
private _host;
|
|
120
141
|
constructor(props?: ConstructProps<AdwAboutDialog>);
|
|
142
|
+
private _makeLabel;
|
|
121
143
|
private _addCardLabel;
|
|
122
|
-
/**
|
|
123
|
-
private
|
|
144
|
+
/** An activatable row with a trailing glyph: the chevron or the external-link icon. */
|
|
145
|
+
private _newRow;
|
|
146
|
+
private _setTrailing;
|
|
147
|
+
/** Point a row's activation at `run`; the handler is replaced, never stacked. */
|
|
148
|
+
private _bindRow;
|
|
149
|
+
/** A subpage: a back button and the page title above its content, collapsed until shown. */
|
|
150
|
+
private _addPage;
|
|
151
|
+
/** Show a subpage, or the main page for `null`. */
|
|
152
|
+
private _showPage;
|
|
124
153
|
/**
|
|
125
154
|
* `activate-link`: emit with GTK's handled accumulator, then launch unless a handler
|
|
126
155
|
* returned true. A URI the host cannot launch is dropped, as a failed launch is.
|
|
127
156
|
*/
|
|
128
157
|
private _activateLink;
|
|
129
|
-
/** Point a link
|
|
158
|
+
/** Point a link row at `uri` and show or hide it. */
|
|
130
159
|
private _setLink;
|
|
131
160
|
/** The application name (bold, centered). */
|
|
132
161
|
get applicationName(): string;
|
|
@@ -49,6 +49,10 @@ declare const AdwActionRow_base: ((abstract new (...args: any[]) => {
|
|
|
49
49
|
set widthRequest(value: number | string);
|
|
50
50
|
get heightRequest(): number;
|
|
51
51
|
set heightRequest(value: number | string);
|
|
52
|
+
get width_request(): number;
|
|
53
|
+
set width_request(value: number | string);
|
|
54
|
+
get height_request(): number;
|
|
55
|
+
set height_request(value: number | string);
|
|
52
56
|
get_visible(): boolean;
|
|
53
57
|
set_visible(visible: boolean): void;
|
|
54
58
|
get_mapped(): boolean;
|
|
@@ -82,6 +86,11 @@ declare const AdwActionRow_base: ((abstract new (...args: any[]) => {
|
|
|
82
86
|
}) & typeof GridLayout;
|
|
83
87
|
export declare class AdwActionRow extends AdwActionRow_base {
|
|
84
88
|
static readonly GTypeName: string;
|
|
89
|
+
/**
|
|
90
|
+
* `activated` is a NativeScript event, not a declared signal (see `activate()`), yet the
|
|
91
|
+
* builder's `bindSignals` accepts a `.blp` `activated => …` only for a name listed here.
|
|
92
|
+
*/
|
|
93
|
+
static readonly emittedSignals: readonly string[];
|
|
85
94
|
/** The names this widget's `_addChildFromBuilder` honours — see `./builder-slots.ts`. */
|
|
86
95
|
static readonly builderSlots: readonly string[];
|
|
87
96
|
/**
|
|
@@ -40,6 +40,10 @@ declare const AdwAlertDialog_base: ((abstract new (...args: any[]) => {
|
|
|
40
40
|
set widthRequest(value: number | string);
|
|
41
41
|
get heightRequest(): number;
|
|
42
42
|
set heightRequest(value: number | string);
|
|
43
|
+
get width_request(): number;
|
|
44
|
+
set width_request(value: number | string);
|
|
45
|
+
get height_request(): number;
|
|
46
|
+
set height_request(value: number | string);
|
|
43
47
|
get_visible(): boolean;
|
|
44
48
|
set_visible(visible: boolean): void;
|
|
45
49
|
get_mapped(): boolean;
|
|
@@ -43,6 +43,10 @@ declare const AdwAvatar_base: ((abstract new (...args: any[]) => {
|
|
|
43
43
|
set widthRequest(value: number | string);
|
|
44
44
|
get heightRequest(): number;
|
|
45
45
|
set heightRequest(value: number | string);
|
|
46
|
+
get width_request(): number;
|
|
47
|
+
set width_request(value: number | string);
|
|
48
|
+
get height_request(): number;
|
|
49
|
+
set height_request(value: number | string);
|
|
46
50
|
get_visible(): boolean;
|
|
47
51
|
set_visible(visible: boolean): void;
|
|
48
52
|
get_mapped(): boolean;
|
|
@@ -39,6 +39,10 @@ declare const AdwBanner_base: ((abstract new (...args: any[]) => {
|
|
|
39
39
|
set widthRequest(value: number | string);
|
|
40
40
|
get heightRequest(): number;
|
|
41
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get width_request(): number;
|
|
43
|
+
set width_request(value: number | string);
|
|
44
|
+
get height_request(): number;
|
|
45
|
+
set height_request(value: number | string);
|
|
42
46
|
get_visible(): boolean;
|
|
43
47
|
set_visible(visible: boolean): void;
|
|
44
48
|
get_mapped(): boolean;
|
|
@@ -50,6 +50,10 @@ declare const AdwBottomSheet_base: ((abstract new (...args: any[]) => {
|
|
|
50
50
|
set widthRequest(value: number | string);
|
|
51
51
|
get heightRequest(): number;
|
|
52
52
|
set heightRequest(value: number | string);
|
|
53
|
+
get width_request(): number;
|
|
54
|
+
set width_request(value: number | string);
|
|
55
|
+
get height_request(): number;
|
|
56
|
+
set height_request(value: number | string);
|
|
53
57
|
get_visible(): boolean;
|
|
54
58
|
set_visible(visible: boolean): void;
|
|
55
59
|
get_mapped(): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `adw-external-link`, the suffix of every link row in `AdwAboutDialog`.
|
|
3
|
+
*
|
|
4
|
+
* libadwaita's source draws it as a 2px stroke; the rasteriser here fills paths, so this is the
|
|
5
|
+
* same outline (a box open at the top right and an arrow leaving it) as a filled shape.
|
|
6
|
+
*/
|
|
7
|
+
export declare const EXTERNAL_LINK_SVG: string;
|
|
@@ -46,6 +46,10 @@ declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
|
|
|
46
46
|
set widthRequest(value: number | string);
|
|
47
47
|
get heightRequest(): number;
|
|
48
48
|
set heightRequest(value: number | string);
|
|
49
|
+
get width_request(): number;
|
|
50
|
+
set width_request(value: number | string);
|
|
51
|
+
get height_request(): number;
|
|
52
|
+
set height_request(value: number | string);
|
|
49
53
|
get_visible(): boolean;
|
|
50
54
|
set_visible(visible: boolean): void;
|
|
51
55
|
get_mapped(): boolean;
|
|
@@ -53,6 +53,10 @@ declare const AdwCarousel_base: ((abstract new (...args: any[]) => {
|
|
|
53
53
|
set widthRequest(value: number | string);
|
|
54
54
|
get heightRequest(): number;
|
|
55
55
|
set heightRequest(value: number | string);
|
|
56
|
+
get width_request(): number;
|
|
57
|
+
set width_request(value: number | string);
|
|
58
|
+
get height_request(): number;
|
|
59
|
+
set height_request(value: number | string);
|
|
56
60
|
get_visible(): boolean;
|
|
57
61
|
set_visible(visible: boolean): void;
|
|
58
62
|
get_mapped(): boolean;
|
|
@@ -39,6 +39,10 @@ declare const AdwClamp_base: ((abstract new (...args: any[]) => {
|
|
|
39
39
|
set widthRequest(value: number | string);
|
|
40
40
|
get heightRequest(): number;
|
|
41
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get width_request(): number;
|
|
43
|
+
set width_request(value: number | string);
|
|
44
|
+
get height_request(): number;
|
|
45
|
+
set height_request(value: number | string);
|
|
42
46
|
get_visible(): boolean;
|
|
43
47
|
set_visible(visible: boolean): void;
|
|
44
48
|
get_mapped(): boolean;
|
|
@@ -45,6 +45,10 @@ declare const AdwDataGrid_base: ((abstract new (...args: any[]) => {
|
|
|
45
45
|
set widthRequest(value: number | string);
|
|
46
46
|
get heightRequest(): number;
|
|
47
47
|
set heightRequest(value: number | string);
|
|
48
|
+
get width_request(): number;
|
|
49
|
+
set width_request(value: number | string);
|
|
50
|
+
get height_request(): number;
|
|
51
|
+
set height_request(value: number | string);
|
|
48
52
|
get_visible(): boolean;
|
|
49
53
|
set_visible(visible: boolean): void;
|
|
50
54
|
get_mapped(): boolean;
|
|
@@ -37,6 +37,10 @@ declare const AdwHeaderBar_base: ((abstract new (...args: any[]) => {
|
|
|
37
37
|
set widthRequest(value: number | string);
|
|
38
38
|
get heightRequest(): number;
|
|
39
39
|
set heightRequest(value: number | string);
|
|
40
|
+
get width_request(): number;
|
|
41
|
+
set width_request(value: number | string);
|
|
42
|
+
get height_request(): number;
|
|
43
|
+
set height_request(value: number | string);
|
|
40
44
|
get_visible(): boolean;
|
|
41
45
|
set_visible(visible: boolean): void;
|
|
42
46
|
get_mapped(): boolean;
|
|
@@ -47,6 +47,10 @@ declare const AdwImageButton_base: ((abstract new (...args: any[]) => {
|
|
|
47
47
|
set widthRequest(value: number | string);
|
|
48
48
|
get heightRequest(): number;
|
|
49
49
|
set heightRequest(value: number | string);
|
|
50
|
+
get width_request(): number;
|
|
51
|
+
set width_request(value: number | string);
|
|
52
|
+
get height_request(): number;
|
|
53
|
+
set height_request(value: number | string);
|
|
50
54
|
get_visible(): boolean;
|
|
51
55
|
set_visible(visible: boolean): void;
|
|
52
56
|
get_mapped(): boolean;
|
|
@@ -43,6 +43,10 @@ declare const AdwNavigationPage_base: ((abstract new (...args: any[]) => {
|
|
|
43
43
|
set widthRequest(value: number | string);
|
|
44
44
|
get heightRequest(): number;
|
|
45
45
|
set heightRequest(value: number | string);
|
|
46
|
+
get width_request(): number;
|
|
47
|
+
set width_request(value: number | string);
|
|
48
|
+
get height_request(): number;
|
|
49
|
+
set height_request(value: number | string);
|
|
46
50
|
get_visible(): boolean;
|
|
47
51
|
set_visible(visible: boolean): void;
|
|
48
52
|
get_mapped(): boolean;
|
|
@@ -50,6 +50,10 @@ declare const AdwNavigationView_base: ((abstract new (...args: any[]) => {
|
|
|
50
50
|
set widthRequest(value: number | string);
|
|
51
51
|
get heightRequest(): number;
|
|
52
52
|
set heightRequest(value: number | string);
|
|
53
|
+
get width_request(): number;
|
|
54
|
+
set width_request(value: number | string);
|
|
55
|
+
get height_request(): number;
|
|
56
|
+
set height_request(value: number | string);
|
|
53
57
|
get_visible(): boolean;
|
|
54
58
|
set_visible(visible: boolean): void;
|
|
55
59
|
get_mapped(): boolean;
|
|
@@ -39,6 +39,10 @@ declare const AdwPreferencesGroup_base: ((abstract new (...args: any[]) => {
|
|
|
39
39
|
set widthRequest(value: number | string);
|
|
40
40
|
get heightRequest(): number;
|
|
41
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get width_request(): number;
|
|
43
|
+
set width_request(value: number | string);
|
|
44
|
+
get height_request(): number;
|
|
45
|
+
set height_request(value: number | string);
|
|
42
46
|
get_visible(): boolean;
|
|
43
47
|
set_visible(visible: boolean): void;
|
|
44
48
|
get_mapped(): boolean;
|
|
@@ -39,6 +39,10 @@ declare const AdwPreferencesPage_base: ((abstract new (...args: any[]) => {
|
|
|
39
39
|
set widthRequest(value: number | string);
|
|
40
40
|
get heightRequest(): number;
|
|
41
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get width_request(): number;
|
|
43
|
+
set width_request(value: number | string);
|
|
44
|
+
get height_request(): number;
|
|
45
|
+
set height_request(value: number | string);
|
|
42
46
|
get_visible(): boolean;
|
|
43
47
|
set_visible(visible: boolean): void;
|
|
44
48
|
get_mapped(): boolean;
|
|
@@ -36,6 +36,10 @@ declare const AdwShortcutLabel_base: ((abstract new (...args: any[]) => {
|
|
|
36
36
|
set widthRequest(value: number | string);
|
|
37
37
|
get heightRequest(): number;
|
|
38
38
|
set heightRequest(value: number | string);
|
|
39
|
+
get width_request(): number;
|
|
40
|
+
set width_request(value: number | string);
|
|
41
|
+
get height_request(): number;
|
|
42
|
+
set height_request(value: number | string);
|
|
39
43
|
get_visible(): boolean;
|
|
40
44
|
set_visible(visible: boolean): void;
|
|
41
45
|
get_mapped(): boolean;
|
|
@@ -62,6 +62,10 @@ declare const AdwSidebar_base: ((abstract new (...args: any[]) => {
|
|
|
62
62
|
set widthRequest(value: number | string);
|
|
63
63
|
get heightRequest(): number;
|
|
64
64
|
set heightRequest(value: number | string);
|
|
65
|
+
get width_request(): number;
|
|
66
|
+
set width_request(value: number | string);
|
|
67
|
+
get height_request(): number;
|
|
68
|
+
set height_request(value: number | string);
|
|
65
69
|
get_visible(): boolean;
|
|
66
70
|
set_visible(visible: boolean): void;
|
|
67
71
|
get_mapped(): boolean;
|
|
@@ -44,6 +44,10 @@ declare const AdwSliderRow_base: ((abstract new (...args: any[]) => {
|
|
|
44
44
|
set widthRequest(value: number | string);
|
|
45
45
|
get heightRequest(): number;
|
|
46
46
|
set heightRequest(value: number | string);
|
|
47
|
+
get width_request(): number;
|
|
48
|
+
set width_request(value: number | string);
|
|
49
|
+
get height_request(): number;
|
|
50
|
+
set height_request(value: number | string);
|
|
47
51
|
get_visible(): boolean;
|
|
48
52
|
set_visible(visible: boolean): void;
|
|
49
53
|
get_mapped(): boolean;
|
|
@@ -43,6 +43,10 @@ declare const AdwSpinner_base: ((abstract new (...args: any[]) => {
|
|
|
43
43
|
set widthRequest(value: number | string);
|
|
44
44
|
get heightRequest(): number;
|
|
45
45
|
set heightRequest(value: number | string);
|
|
46
|
+
get width_request(): number;
|
|
47
|
+
set width_request(value: number | string);
|
|
48
|
+
get height_request(): number;
|
|
49
|
+
set height_request(value: number | string);
|
|
46
50
|
get_visible(): boolean;
|
|
47
51
|
set_visible(visible: boolean): void;
|
|
48
52
|
get_mapped(): boolean;
|
|
@@ -58,6 +58,10 @@ declare const AdwSplitButton_base: ((abstract new (...args: any[]) => {
|
|
|
58
58
|
set widthRequest(value: number | string);
|
|
59
59
|
get heightRequest(): number;
|
|
60
60
|
set heightRequest(value: number | string);
|
|
61
|
+
get width_request(): number;
|
|
62
|
+
set width_request(value: number | string);
|
|
63
|
+
get height_request(): number;
|
|
64
|
+
set height_request(value: number | string);
|
|
61
65
|
get_visible(): boolean;
|
|
62
66
|
set_visible(visible: boolean): void;
|
|
63
67
|
get_mapped(): boolean;
|
|
@@ -38,6 +38,10 @@ declare const AdwStatusPage_base: ((abstract new (...args: any[]) => {
|
|
|
38
38
|
set widthRequest(value: number | string);
|
|
39
39
|
get heightRequest(): number;
|
|
40
40
|
set heightRequest(value: number | string);
|
|
41
|
+
get width_request(): number;
|
|
42
|
+
set width_request(value: number | string);
|
|
43
|
+
get height_request(): number;
|
|
44
|
+
set height_request(value: number | string);
|
|
41
45
|
get_visible(): boolean;
|
|
42
46
|
set_visible(visible: boolean): void;
|
|
43
47
|
get_mapped(): boolean;
|
|
@@ -92,6 +96,9 @@ export declare class AdwStatusPage extends AdwStatusPage_base {
|
|
|
92
96
|
protected readonly _descriptionLabel: Label;
|
|
93
97
|
private _child;
|
|
94
98
|
private _styleClasses;
|
|
99
|
+
private _explicitIconColor;
|
|
100
|
+
private _unsubFg;
|
|
101
|
+
private _unsubScheme;
|
|
95
102
|
constructor(props?: ConstructProps<AdwStatusPage>);
|
|
96
103
|
/**
|
|
97
104
|
* The large icon shown above the title — an Adwaita icon NAME
|
|
@@ -112,6 +119,8 @@ export declare class AdwStatusPage extends AdwStatusPage_base {
|
|
|
112
119
|
/** The icon fill colour (hex). Defaults to a dim grey; light/dark callers may override. */
|
|
113
120
|
get iconColor(): string;
|
|
114
121
|
set iconColor(value: string);
|
|
122
|
+
/** Adopt the window foreground at libadwaita's icon opacity (no-op once a caller pinned a colour). */
|
|
123
|
+
private _syncIconColor;
|
|
115
124
|
/** The page title (bold, centered). An empty title takes no space. */
|
|
116
125
|
get title(): string;
|
|
117
126
|
set title(value: string);
|
|
@@ -59,6 +59,10 @@ declare const AdwTabView_base: ((abstract new (...args: any[]) => {
|
|
|
59
59
|
set widthRequest(value: number | string);
|
|
60
60
|
get heightRequest(): number;
|
|
61
61
|
set heightRequest(value: number | string);
|
|
62
|
+
get width_request(): number;
|
|
63
|
+
set width_request(value: number | string);
|
|
64
|
+
get height_request(): number;
|
|
65
|
+
set height_request(value: number | string);
|
|
62
66
|
get_visible(): boolean;
|
|
63
67
|
set_visible(visible: boolean): void;
|
|
64
68
|
get_mapped(): boolean;
|
|
@@ -40,6 +40,10 @@ declare const AdwToastOverlay_base: ((abstract new (...args: any[]) => {
|
|
|
40
40
|
set widthRequest(value: number | string);
|
|
41
41
|
get heightRequest(): number;
|
|
42
42
|
set heightRequest(value: number | string);
|
|
43
|
+
get width_request(): number;
|
|
44
|
+
set width_request(value: number | string);
|
|
45
|
+
get height_request(): number;
|
|
46
|
+
set height_request(value: number | string);
|
|
43
47
|
get_visible(): boolean;
|
|
44
48
|
set_visible(visible: boolean): void;
|
|
45
49
|
get_mapped(): boolean;
|
|
@@ -57,6 +57,10 @@ declare const AdwToggleGroup_base: ((abstract new (...args: any[]) => {
|
|
|
57
57
|
set widthRequest(value: number | string);
|
|
58
58
|
get heightRequest(): number;
|
|
59
59
|
set heightRequest(value: number | string);
|
|
60
|
+
get width_request(): number;
|
|
61
|
+
set width_request(value: number | string);
|
|
62
|
+
get height_request(): number;
|
|
63
|
+
set height_request(value: number | string);
|
|
60
64
|
get_visible(): boolean;
|
|
61
65
|
set_visible(visible: boolean): void;
|
|
62
66
|
get_mapped(): boolean;
|
|
@@ -36,6 +36,10 @@ declare const AdwToggle_base: ((abstract new (...args: any[]) => {
|
|
|
36
36
|
set widthRequest(value: number | string);
|
|
37
37
|
get heightRequest(): number;
|
|
38
38
|
set heightRequest(value: number | string);
|
|
39
|
+
get width_request(): number;
|
|
40
|
+
set width_request(value: number | string);
|
|
41
|
+
get height_request(): number;
|
|
42
|
+
set height_request(value: number | string);
|
|
39
43
|
get_visible(): boolean;
|
|
40
44
|
set_visible(visible: boolean): void;
|
|
41
45
|
get_mapped(): boolean;
|
|
@@ -39,6 +39,10 @@ declare const AdwToolbarView_base: ((abstract new (...args: any[]) => {
|
|
|
39
39
|
set widthRequest(value: number | string);
|
|
40
40
|
get heightRequest(): number;
|
|
41
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get width_request(): number;
|
|
43
|
+
set width_request(value: number | string);
|
|
44
|
+
get height_request(): number;
|
|
45
|
+
set height_request(value: number | string);
|
|
42
46
|
get_visible(): boolean;
|
|
43
47
|
set_visible(visible: boolean): void;
|
|
44
48
|
get_mapped(): boolean;
|
|
@@ -51,6 +51,10 @@ declare const AdwViewStack_base: ((abstract new (...args: any[]) => {
|
|
|
51
51
|
set widthRequest(value: number | string);
|
|
52
52
|
get heightRequest(): number;
|
|
53
53
|
set heightRequest(value: number | string);
|
|
54
|
+
get width_request(): number;
|
|
55
|
+
set width_request(value: number | string);
|
|
56
|
+
get height_request(): number;
|
|
57
|
+
set height_request(value: number | string);
|
|
54
58
|
get_visible(): boolean;
|
|
55
59
|
set_visible(visible: boolean): void;
|
|
56
60
|
get_mapped(): boolean;
|
|
@@ -38,6 +38,10 @@ declare const AdwViewSwitcherBar_base: ((abstract new (...args: any[]) => {
|
|
|
38
38
|
set widthRequest(value: number | string);
|
|
39
39
|
get heightRequest(): number;
|
|
40
40
|
set heightRequest(value: number | string);
|
|
41
|
+
get width_request(): number;
|
|
42
|
+
set width_request(value: number | string);
|
|
43
|
+
get height_request(): number;
|
|
44
|
+
set height_request(value: number | string);
|
|
41
45
|
get_visible(): boolean;
|
|
42
46
|
set_visible(visible: boolean): void;
|
|
43
47
|
get_mapped(): boolean;
|
|
@@ -41,6 +41,10 @@ declare const AdwWindowTitle_base: ((abstract new (...args: any[]) => {
|
|
|
41
41
|
set widthRequest(value: number | string);
|
|
42
42
|
get heightRequest(): number;
|
|
43
43
|
set heightRequest(value: number | string);
|
|
44
|
+
get width_request(): number;
|
|
45
|
+
set width_request(value: number | string);
|
|
46
|
+
get height_request(): number;
|
|
47
|
+
set height_request(value: number | string);
|
|
44
48
|
get_visible(): boolean;
|
|
45
49
|
set_visible(visible: boolean): void;
|
|
46
50
|
get_mapped(): boolean;
|
|
@@ -39,6 +39,10 @@ declare const AdwWrapBox_base: ((abstract new (...args: any[]) => {
|
|
|
39
39
|
set widthRequest(value: number | string);
|
|
40
40
|
get heightRequest(): number;
|
|
41
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get width_request(): number;
|
|
43
|
+
set width_request(value: number | string);
|
|
44
|
+
get height_request(): number;
|
|
45
|
+
set height_request(value: number | string);
|
|
42
46
|
get_visible(): boolean;
|
|
43
47
|
set_visible(visible: boolean): void;
|
|
44
48
|
get_mapped(): boolean;
|
|
@@ -37,6 +37,10 @@ declare const AdwCarouselIndicatorBase_base: ((abstract new (...args: any[]) =>
|
|
|
37
37
|
set widthRequest(value: number | string);
|
|
38
38
|
get heightRequest(): number;
|
|
39
39
|
set heightRequest(value: number | string);
|
|
40
|
+
get width_request(): number;
|
|
41
|
+
set width_request(value: number | string);
|
|
42
|
+
get height_request(): number;
|
|
43
|
+
set height_request(value: number | string);
|
|
40
44
|
get_visible(): boolean;
|
|
41
45
|
set_visible(visible: boolean): void;
|
|
42
46
|
get_mapped(): boolean;
|
|
@@ -37,6 +37,10 @@ declare const GtkActionBar_base: ((abstract new (...args: any[]) => {
|
|
|
37
37
|
set widthRequest(value: number | string);
|
|
38
38
|
get heightRequest(): number;
|
|
39
39
|
set heightRequest(value: number | string);
|
|
40
|
+
get width_request(): number;
|
|
41
|
+
set width_request(value: number | string);
|
|
42
|
+
get height_request(): number;
|
|
43
|
+
set height_request(value: number | string);
|
|
40
44
|
get_visible(): boolean;
|
|
41
45
|
set_visible(visible: boolean): void;
|
|
42
46
|
get_mapped(): boolean;
|