@gjsify/adwaita-nativescript 0.64.20 → 0.64.22

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.
Files changed (75) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/lib/esm/namespace/adw.js +1 -1
  3. package/lib/esm/namespace/gtk.js +1 -1
  4. package/lib/esm/platform-host.js +1 -1
  5. package/lib/esm/widgets/accent-theme.js +1 -1
  6. package/lib/esm/widgets/adw-about-dialog.js +3 -3
  7. package/lib/esm/widgets/adw-action-row.js +1 -1
  8. package/lib/esm/widgets/adw-bundled-icons.js +1 -0
  9. package/lib/esm/widgets/adw-button-row.js +1 -1
  10. package/lib/esm/widgets/adw-entry-row.js +1 -1
  11. package/lib/esm/widgets/adw-expander-row.js +1 -1
  12. package/lib/esm/widgets/adw-status-page.js +1 -1
  13. package/lib/esm/widgets/gtk-button.js +1 -1
  14. package/lib/esm/widgets/gtk-check-button.js +1 -1
  15. package/lib/esm/widgets/gtk-scrolled-window.js +1 -1
  16. package/lib/esm/widgets/icons.android.js +1 -1
  17. package/lib/esm/widgets/index.js +1 -1
  18. package/lib/esm/widgets/named-colors-theme.js +1 -1
  19. package/lib/esm/widgets/status-icon-color.js +1 -0
  20. package/lib/esm/widgets/widget-layout.js +1 -1
  21. package/lib/types/scrolled-window-height.spec.d.ts +1 -0
  22. package/lib/types/widgets/adw-about-dialog.d.ts +36 -7
  23. package/lib/types/widgets/adw-action-row.d.ts +9 -0
  24. package/lib/types/widgets/adw-alert-dialog.d.ts +4 -0
  25. package/lib/types/widgets/adw-avatar.d.ts +4 -0
  26. package/lib/types/widgets/adw-banner.d.ts +4 -0
  27. package/lib/types/widgets/adw-bottom-sheet.d.ts +4 -0
  28. package/lib/types/widgets/adw-bundled-icons.d.ts +7 -0
  29. package/lib/types/widgets/adw-button-content.d.ts +4 -0
  30. package/lib/types/widgets/adw-carousel.d.ts +4 -0
  31. package/lib/types/widgets/adw-clamp.d.ts +4 -0
  32. package/lib/types/widgets/adw-data-grid.d.ts +4 -0
  33. package/lib/types/widgets/adw-header-bar.d.ts +4 -0
  34. package/lib/types/widgets/adw-image-button.d.ts +4 -0
  35. package/lib/types/widgets/adw-navigation-page.d.ts +4 -0
  36. package/lib/types/widgets/adw-navigation-view.d.ts +4 -0
  37. package/lib/types/widgets/adw-preferences-group.d.ts +4 -0
  38. package/lib/types/widgets/adw-preferences-page.d.ts +4 -0
  39. package/lib/types/widgets/adw-shortcut-label.d.ts +4 -0
  40. package/lib/types/widgets/adw-sidebar.d.ts +4 -0
  41. package/lib/types/widgets/adw-slider-row.d.ts +4 -0
  42. package/lib/types/widgets/adw-spinner.d.ts +4 -0
  43. package/lib/types/widgets/adw-split-button.d.ts +4 -0
  44. package/lib/types/widgets/adw-status-page.d.ts +9 -0
  45. package/lib/types/widgets/adw-tab-view.d.ts +4 -0
  46. package/lib/types/widgets/adw-toast-overlay.d.ts +4 -0
  47. package/lib/types/widgets/adw-toggle-group.d.ts +4 -0
  48. package/lib/types/widgets/adw-toggle.d.ts +4 -0
  49. package/lib/types/widgets/adw-toolbar-view.d.ts +4 -0
  50. package/lib/types/widgets/adw-view-stack.d.ts +4 -0
  51. package/lib/types/widgets/adw-view-switcher-bar.d.ts +4 -0
  52. package/lib/types/widgets/adw-window-title.d.ts +4 -0
  53. package/lib/types/widgets/adw-wrap-box.d.ts +4 -0
  54. package/lib/types/widgets/carousel-indicator-base.d.ts +4 -0
  55. package/lib/types/widgets/gtk-action-bar.d.ts +4 -0
  56. package/lib/types/widgets/gtk-button.d.ts +4 -0
  57. package/lib/types/widgets/gtk-drop-down.d.ts +4 -0
  58. package/lib/types/widgets/gtk-entry.d.ts +4 -0
  59. package/lib/types/widgets/gtk-image.d.ts +4 -0
  60. package/lib/types/widgets/gtk-label.d.ts +4 -0
  61. package/lib/types/widgets/gtk-popover-menu.d.ts +4 -0
  62. package/lib/types/widgets/gtk-scrolled-window.d.ts +3 -0
  63. package/lib/types/widgets/gtk-stack.d.ts +4 -0
  64. package/lib/types/widgets/gtk-text-view.d.ts +4 -0
  65. package/lib/types/widgets/signals.d.ts +4 -0
  66. package/lib/types/widgets/split-view-base.d.ts +4 -0
  67. package/lib/types/widgets/stack-page.d.ts +4 -0
  68. package/lib/types/widgets/status-icon-color.d.ts +13 -0
  69. package/lib/types/widgets/status-icon-color.spec.d.ts +2 -0
  70. package/lib/types/widgets/styled-layout-base.d.ts +4 -0
  71. package/lib/types/widgets/view-stack-page.d.ts +4 -0
  72. package/lib/types/widgets/view-switcher-base.d.ts +4 -0
  73. package/lib/types/widgets/widget-layout.d.ts +8 -0
  74. package/package.json +13 -13
  75. package/src/theme/adwaita.css +73 -56
@@ -48,7 +48,7 @@ Page.adw-window {
48
48
  }
49
49
 
50
50
  .adw-preferences-group-title {
51
- font-size: 11;
51
+ font-size: 14.67;
52
52
  font-weight: 700;
53
53
  color: rgba(0, 0, 0, 0.55);
54
54
  margin: 0;
@@ -61,7 +61,7 @@ Page.adw-window {
61
61
  * — the labels box carries nothing else, and the NS subset has no property for a
62
62
  * spacing, so the gap rides on the second child. It was 2. */
63
63
  .adw-preferences-group-description {
64
- font-size: 12;
64
+ font-size: 14.67;
65
65
  color: rgba(0, 0, 0, 0.55);
66
66
  margin: 6 0 0 0;
67
67
  }
@@ -187,13 +187,13 @@ Page.adw-window {
187
187
  }
188
188
 
189
189
  .adw-row-title {
190
- font-size: 15;
190
+ font-size: 14.67;
191
191
  color: rgba(0, 0, 0, 0.8);
192
192
  margin: 0;
193
193
  }
194
194
 
195
195
  .adw-row-subtitle {
196
- font-size: 13;
196
+ font-size: 12.22;
197
197
  color: rgba(0, 0, 0, 0.55);
198
198
  margin: 2 0 0 0;
199
199
  }
@@ -205,8 +205,11 @@ Page.adw-window {
205
205
 
206
206
  /* ===== Switch ===== */
207
207
 
208
+ /* NativeScript tints the thumb with `color` and the track with `background-color`, so the
209
+ * accent goes on the track (as in libadwaita) and the thumb stays white. */
208
210
  .adw-switch {
209
- color: #3584e4;
211
+ color: #ffffff;
212
+ background-color: #3584e4;
210
213
  }
211
214
 
212
215
  /* NativeScript's `color` tints the thumb in BOTH states, so an off switch kept its
@@ -215,6 +218,7 @@ Page.adw-window {
215
218
  * row (the Android thumb overhangs the track), so it is a mid grey. */
216
219
  .adw-switch.off {
217
220
  color: #9a9996;
221
+ background-color: #deddda;
218
222
  }
219
223
 
220
224
  /* ===== Preferences page (ScrollView wrapper) ===== */
@@ -232,7 +236,7 @@ Page.adw-window {
232
236
 
233
237
  /* The title shrinks to a small dim floating label above the field. */
234
238
  .adw-entry-title {
235
- font-size: 12;
239
+ font-size: 12.22;
236
240
  color: rgba(0, 0, 0, 0.55);
237
241
  margin: 0;
238
242
  }
@@ -244,7 +248,7 @@ Page.adw-window {
244
248
  * they are restated here so the rule is readable from the stylesheet.) */
245
249
  .adw-entry-field,
246
250
  .adw-entry-input {
247
- font-size: 15;
251
+ font-size: 14.67;
248
252
  color: rgba(0, 0, 0, 0.8);
249
253
  background-color: transparent;
250
254
  /* No Material underline — no Adwaita entry has a field border. */
@@ -338,7 +342,7 @@ Page.adw-window {
338
342
  }
339
343
 
340
344
  .adw-combo-value {
341
- font-size: 15;
345
+ font-size: 14.67;
342
346
  color: rgba(0, 0, 0, 0.55);
343
347
  margin: 0 4 0 0;
344
348
  }
@@ -369,7 +373,7 @@ Page.adw-window {
369
373
  /* `button { font-weight: bold }` (_buttons.scss:24). The label carries the
370
374
  * colour because NS does not inherit `color` to a child Label. */
371
375
  .adw-drop-down-label {
372
- font-size: 15;
376
+ font-size: 14.67;
373
377
  font-weight: 700;
374
378
  color: rgba(0, 0, 0, 0.8);
375
379
  vertical-align: center;
@@ -413,7 +417,7 @@ Page.adw-window {
413
417
  }
414
418
 
415
419
  .adw-spin-value {
416
- font-size: 15;
420
+ font-size: 14.67;
417
421
  color: rgba(0, 0, 0, 0.8);
418
422
  margin: 0 6 0 4;
419
423
  vertical-align: center;
@@ -438,13 +442,13 @@ Page.adw-window {
438
442
  }
439
443
 
440
444
  .adw-slider-title {
441
- font-size: 15;
445
+ font-size: 14.67;
442
446
  color: rgba(0, 0, 0, 0.8);
443
447
  margin: 0;
444
448
  }
445
449
 
446
450
  .adw-slider-value {
447
- font-size: 15;
451
+ font-size: 14.67;
448
452
  color: rgba(0, 0, 0, 0.55);
449
453
  margin: 0;
450
454
  }
@@ -659,7 +663,7 @@ Page.adw-window {
659
663
  * text button has neither, and one selector for both would give every text button
660
664
  * `image-text-button` spacing. */
661
665
  .adw-button-label {
662
- font-size: 15;
666
+ font-size: 14.67;
663
667
  font-weight: 700;
664
668
  color: rgba(0, 0, 0, 0.8);
665
669
  }
@@ -754,7 +758,7 @@ Page.adw-window {
754
758
  }
755
759
 
756
760
  .adw-banner-title {
757
- font-size: 15;
761
+ font-size: 14.67;
758
762
  color: rgba(0, 0, 0, 0.8);
759
763
  margin: 0;
760
764
  }
@@ -800,14 +804,14 @@ Page.adw-window {
800
804
  }
801
805
 
802
806
  .adw-window-title-title {
803
- font-size: 15;
807
+ font-size: 14.67;
804
808
  font-weight: 700;
805
809
  color: rgba(0, 0, 0, 0.8);
806
810
  margin: 0;
807
811
  }
808
812
 
809
813
  .adw-window-title-subtitle {
810
- font-size: 12;
814
+ font-size: 12.22;
811
815
  color: rgba(0, 0, 0, 0.55);
812
816
  margin: 0;
813
817
  }
@@ -973,7 +977,7 @@ Page.adw-window {
973
977
  /* AdwIndicatorBin's badge — the unread count, or (with .needs-attention and no
974
978
  * count) a bare dot. Reference: refs/libadwaita/src/adw-indicator-bin.c */
975
979
  .adw-viewswitcherbar-button-badge {
976
- font-size: 10;
980
+ font-size: 8.8;
977
981
  font-weight: 700;
978
982
  color: #ffffff;
979
983
  background-color: #3584e4;
@@ -1015,7 +1019,7 @@ Page.adw-window {
1015
1019
  * --spacing-s / --spacing-m, 9 and 12). Single-line is set on the widget: a
1016
1020
  * wrapped figure column stops being a column of figures. */
1017
1021
  .adw-data-grid-cell {
1018
- font-size: 15;
1022
+ font-size: 14.67;
1019
1023
  color: rgba(0, 0, 0, 0.8);
1020
1024
  padding: 9 12 9 12;
1021
1025
  vertical-align: center;
@@ -1056,7 +1060,7 @@ Page.adw-window {
1056
1060
  }
1057
1061
 
1058
1062
  .adw-data-grid-cell.header-cell {
1059
- font-size: 12;
1063
+ font-size: 14.67;
1060
1064
  font-weight: 700;
1061
1065
  color: rgba(0, 0, 0, 0.55);
1062
1066
  }
@@ -1145,14 +1149,14 @@ Page.adw-window {
1145
1149
  }
1146
1150
 
1147
1151
  .adw-status-page-title {
1148
- font-size: 20;
1152
+ font-size: 26.55;
1149
1153
  font-weight: 700;
1150
1154
  color: rgba(0, 0, 0, 0.8);
1151
1155
  margin: 0 0 6 0;
1152
1156
  }
1153
1157
 
1154
1158
  .adw-status-page-description {
1155
- font-size: 14;
1159
+ font-size: 14.67;
1156
1160
  color: rgba(0, 0, 0, 0.55);
1157
1161
  margin: 0;
1158
1162
  }
@@ -1167,7 +1171,7 @@ Page.adw-window {
1167
1171
  }
1168
1172
 
1169
1173
  .adw-status-page.compact .adw-status-page-title {
1170
- font-size: 15;
1174
+ font-size: 19.95;
1171
1175
  }
1172
1176
 
1173
1177
  /* ===== Button row (full-width tappable row) ===== */
@@ -1181,7 +1185,7 @@ Page.adw-window {
1181
1185
  }
1182
1186
 
1183
1187
  .adw-button-row-title {
1184
- font-size: 15;
1188
+ font-size: 14.67;
1185
1189
  font-weight: 700;
1186
1190
  color: #3584e4;
1187
1191
  margin: 0;
@@ -1234,7 +1238,7 @@ Page.adw-window {
1234
1238
  }
1235
1239
 
1236
1240
  .adw-button-content-label {
1237
- font-size: 15;
1241
+ font-size: 14.67;
1238
1242
  font-weight: 700;
1239
1243
  color: rgba(0, 0, 0, 0.8);
1240
1244
  margin: 0;
@@ -1262,7 +1266,7 @@ Page.adw-window {
1262
1266
  }
1263
1267
 
1264
1268
  .adw-split-button-label {
1265
- font-size: 15;
1269
+ font-size: 14.67;
1266
1270
  font-weight: 700;
1267
1271
  color: rgba(0, 0, 0, 0.8);
1268
1272
  vertical-align: center;
@@ -1321,7 +1325,7 @@ Page.adw-window {
1321
1325
  }
1322
1326
 
1323
1327
  .adw-toggle-label {
1324
- font-size: 14;
1328
+ font-size: 14.67;
1325
1329
  font-weight: 700;
1326
1330
  color: rgba(0, 0, 0, 0.8);
1327
1331
  vertical-align: center;
@@ -1391,7 +1395,7 @@ Page.adw-window {
1391
1395
 
1392
1396
  /* AdwIndicatorBin's badge on the classic switcher's buttons. */
1393
1397
  .adw-view-switcher-button-badge {
1394
- font-size: 10;
1398
+ font-size: 8.8;
1395
1399
  font-weight: 700;
1396
1400
  color: #ffffff;
1397
1401
  background-color: #3584e4;
@@ -1445,7 +1449,7 @@ Page.adw-window {
1445
1449
 
1446
1450
  /* AdwIndicatorBin's badge on the inline switcher's toggles. */
1447
1451
  .adw-inline-view-switcher-button-badge {
1448
- font-size: 10;
1452
+ font-size: 8.8;
1449
1453
  font-weight: 700;
1450
1454
  color: #ffffff;
1451
1455
  background-color: #3584e4;
@@ -1628,7 +1632,7 @@ Page.adw-window {
1628
1632
  }
1629
1633
 
1630
1634
  .adw-sidebar-row-title {
1631
- font-size: 15;
1635
+ font-size: 14.67;
1632
1636
  color: rgba(0, 0, 0, 0.8);
1633
1637
  margin: 0;
1634
1638
  }
@@ -1711,7 +1715,7 @@ Page.adw-window {
1711
1715
  }
1712
1716
 
1713
1717
  .adw-check-label {
1714
- font-size: 15;
1718
+ font-size: 14.67;
1715
1719
  color: rgba(0, 0, 0, 0.8);
1716
1720
  }
1717
1721
 
@@ -1755,7 +1759,7 @@ Page.adw-window {
1755
1759
 
1756
1760
  .adw-text-view-input {
1757
1761
  color: rgba(0, 0, 0, 0.8);
1758
- font-size: 15;
1762
+ font-size: 14.67;
1759
1763
  }
1760
1764
 
1761
1765
  .adw-text-view.monospace .adw-text-view-input {
@@ -1775,7 +1779,7 @@ Page.adw-window {
1775
1779
  }
1776
1780
 
1777
1781
  .adw-toast-title {
1778
- font-size: 14;
1782
+ font-size: 14.67;
1779
1783
  color: #ffffff;
1780
1784
  margin: 0;
1781
1785
  }
@@ -1814,40 +1818,55 @@ Page.adw-window {
1814
1818
  margin: 0 0 8 0;
1815
1819
  }
1816
1820
 
1817
- .adw-about-dialog-link,
1818
- .adw-about-dialog-links-item {
1821
+ .adw-about-dialog-page-bar {
1822
+ margin: 0 0 12 0;
1823
+ }
1824
+
1825
+ .adw-about-dialog-back {
1819
1826
  background-color: transparent;
1820
1827
  color: rgba(0, 0, 0, 0.8);
1821
- text-decoration: underline;
1822
- font-size: 13;
1823
- margin: 2 0 2 0;
1828
+ font-size: 24;
1829
+ font-weight: 700;
1830
+ padding: 0 12 0 4;
1831
+ }
1832
+
1833
+ .adw-about-dialog-page-title {
1834
+ font-size: 14.67;
1835
+ font-weight: 700;
1836
+ color: rgba(0, 0, 0, 0.85);
1837
+ }
1838
+
1839
+ .adw-about-dialog-card .adw-preferences-group {
1840
+ margin: 0 0 12 0;
1824
1841
  }
1825
1842
 
1826
1843
  .adw-about-dialog-name {
1827
- font-size: 20;
1844
+ font-size: 26.55;
1828
1845
  font-weight: 700;
1829
1846
  color: rgba(0, 0, 0, 0.85);
1830
1847
  margin: 0 0 2 0;
1831
1848
  }
1832
1849
 
1833
1850
  .adw-about-dialog-version {
1834
- font-size: 13;
1851
+ font-size: 14.67;
1835
1852
  color: rgba(0, 0, 0, 0.55);
1836
1853
  margin: 0 0 8 0;
1837
1854
  }
1838
1855
 
1839
1856
  .adw-about-dialog-developer,
1840
1857
  .adw-about-dialog-comments,
1841
- .adw-about-dialog-website,
1842
- .adw-about-dialog-support,
1843
- .adw-about-dialog-issue,
1844
1858
  .adw-about-dialog-credits,
1845
1859
  .adw-about-dialog-acknowledgements,
1846
1860
  .adw-about-dialog-legal,
1847
- .adw-about-dialog-release-notes,
1848
- .adw-about-dialog-links,
1861
+ .adw-about-dialog-release-notes {
1862
+ font-size: 14.67;
1863
+ color: rgba(0, 0, 0, 0.6);
1864
+ margin: 2 0 2 0;
1865
+ }
1866
+
1867
+ /* monospace font, 10pt (adw-style-manager.c) */
1849
1868
  .adw-about-dialog-debug-info {
1850
- font-size: 13;
1869
+ font-size: 13.33;
1851
1870
  color: rgba(0, 0, 0, 0.6);
1852
1871
  margin: 2 0 2 0;
1853
1872
  }
@@ -1867,7 +1886,7 @@ Page.adw-window {
1867
1886
  }
1868
1887
 
1869
1888
  .adw-preferences-dialog-title {
1870
- font-size: 17;
1889
+ font-size: 14.67;
1871
1890
  font-weight: 700;
1872
1891
  color: rgba(0, 0, 0, 0.85);
1873
1892
  margin: 0;
@@ -1950,7 +1969,7 @@ Page.adw-window {
1950
1969
 
1951
1970
  .adw-shortcut-label-cap-text {
1952
1971
  color: rgba(0, 0, 0, 0.8);
1953
- font-size: 14;
1972
+ font-size: 14.67;
1954
1973
  text-align: center;
1955
1974
  }
1956
1975
 
@@ -1958,7 +1977,7 @@ Page.adw-window {
1958
1977
  * smaller and bold, and rides inside its keycap rather than beside it. */
1959
1978
  .adw-shortcut-label-side {
1960
1979
  color: rgba(0, 0, 0, 0.8);
1961
- font-size: 11;
1980
+ font-size: 12.22;
1962
1981
  font-weight: 700;
1963
1982
  margin-left: 2;
1964
1983
  }
@@ -1966,7 +1985,7 @@ Page.adw-window {
1966
1985
  /* `dim_label` — `--dim-opacity: 55%` (`_colors.scss:319`). */
1967
1986
  .adw-shortcut-label .dimmed {
1968
1987
  color: rgba(0, 0, 0, 0.8);
1969
- font-size: 14;
1988
+ font-size: 14.67;
1970
1989
  opacity: 0.55;
1971
1990
  padding: 6 0 6 0;
1972
1991
  }
@@ -2021,11 +2040,13 @@ Page.ns-dark.adw-window {
2021
2040
  }
2022
2041
 
2023
2042
  .ns-dark .adw-switch {
2024
- color: #78aeed;
2043
+ color: #ffffff;
2044
+ background-color: #78aeed;
2025
2045
  }
2026
2046
 
2027
2047
  .ns-dark .adw-switch.off {
2028
2048
  color: #9a9996;
2049
+ background-color: #5e5c64;
2029
2050
  }
2030
2051
 
2031
2052
  /* ===== Dark: preferences page ===== */
@@ -2680,20 +2701,16 @@ Page.ns-dark.adw-window {
2680
2701
  .ns-dark .adw-about-dialog-version,
2681
2702
  .ns-dark .adw-about-dialog-developer,
2682
2703
  .ns-dark .adw-about-dialog-comments,
2683
- .ns-dark .adw-about-dialog-website,
2684
- .ns-dark .adw-about-dialog-support,
2685
- .ns-dark .adw-about-dialog-issue,
2686
2704
  .ns-dark .adw-about-dialog-credits,
2687
2705
  .ns-dark .adw-about-dialog-acknowledgements,
2688
2706
  .ns-dark .adw-about-dialog-legal,
2689
2707
  .ns-dark .adw-about-dialog-release-notes,
2690
- .ns-dark .adw-about-dialog-links,
2691
2708
  .ns-dark .adw-about-dialog-debug-info {
2692
2709
  color: rgba(255, 255, 255, 0.6);
2693
2710
  }
2694
2711
 
2695
- .ns-dark .adw-about-dialog-link,
2696
- .ns-dark .adw-about-dialog-links-item {
2712
+ .ns-dark .adw-about-dialog-back,
2713
+ .ns-dark .adw-about-dialog-page-title {
2697
2714
  color: #ffffff;
2698
2715
  }
2699
2716