10 커밋 6b7600b448 ... 99417e8e77

작성자 SHA1 메시지 날짜
  Johannes Zellner 99417e8e77 settings: real windowed app with WM preferences 1 일 전
  Johannes Zellner 1123caf1a4 wm: soft drop shadow for normal windows 1 일 전
  Johannes Zellner b70c54bedc browser: auto table layout for overflowing columns, <br> empty lines 1 일 전
  Johannes Zellner 06acbc67d3 browser: cache fallback-table column widths per layout pass 1 일 전
  Johannes Zellner 1e391e1572 wm: pad the title and use a hover-bright close icon 1 일 전
  Johannes Zellner a86bde9cb1 browser: pt font sizes, <center>ed tables, white canvas for grey text 1 일 전
  Johannes Zellner 17dc2c3c81 wm: enlarge the resize band and corner grab squares 1 일 전
  Johannes Zellner 5848ef6639 browser: canvas getContext() returns null instead of being undefined 1 일 전
  Johannes Zellner 851ae2823d wm: preserve the frame and throttle live resize steps 1 일 전
  Johannes Zellner fe70d11885 wm: GNOME app icons and magnifying bottom dock 1 일 전
65개의 변경된 파일과 10734개의 추가작업 그리고 1373개의 파일을 삭제
  1. 1 0
      .gitignore
  2. 262 111
      AGENTS.md
  3. 40 9
      Makefile
  4. 170 0
      assets/icons/apps/COPYING.CC-BY-SA-4.0
  5. 117 0
      assets/icons/apps/COPYING.GPL-2.0
  6. 232 0
      assets/icons/apps/COPYING.GPL-3.0
  7. 176 0
      assets/icons/apps/COPYING.LGPL-2.1
  8. 42 0
      assets/icons/apps/README
  9. BIN
      assets/icons/apps/gnome-aisleriot.png
  10. 2194 0
      assets/icons/apps/gnome-aisleriot.svg
  11. BIN
      assets/icons/apps/org.gnome.Adwaita1.Demo.png
  12. 62 0
      assets/icons/apps/org.gnome.Adwaita1.Demo.svg
  13. BIN
      assets/icons/apps/org.gnome.Calendar.png
  14. 49 0
      assets/icons/apps/org.gnome.Calendar.svg
  15. BIN
      assets/icons/apps/org.gnome.Console.png
  16. 24 0
      assets/icons/apps/org.gnome.Console.svg
  17. BIN
      assets/icons/apps/org.gnome.DiskUtility.png
  18. 444 0
      assets/icons/apps/org.gnome.DiskUtility.svg
  19. BIN
      assets/icons/apps/org.gnome.Epiphany.png
  20. 64 0
      assets/icons/apps/org.gnome.Epiphany.svg
  21. BIN
      assets/icons/apps/org.gnome.Fractal.png
  22. 55 0
      assets/icons/apps/org.gnome.Fractal.svg
  23. BIN
      assets/icons/apps/org.gnome.Mines.png
  24. 0 0
      assets/icons/apps/org.gnome.Mines.svg
  25. BIN
      assets/icons/apps/org.gnome.Nautilus.png
  26. 253 0
      assets/icons/apps/org.gnome.Nautilus.svg
  27. BIN
      assets/icons/apps/org.gnome.Settings.png
  28. 45 0
      assets/icons/apps/org.gnome.Settings.svg
  29. BIN
      assets/icons/apps/org.gnome.SystemMonitor.png
  30. 290 0
      assets/icons/apps/org.gnome.SystemMonitor.svg
  31. BIN
      assets/icons/apps/org.gnome.TextEditor.png
  32. 57 0
      assets/icons/apps/org.gnome.TextEditor.svg
  33. BIN
      assets/icons/apps/org.gnome.clocks.png
  34. 170 0
      assets/icons/apps/org.gnome.clocks.svg
  35. BIN
      assets/icons/apps/org.gnome.design.Palette.png
  36. 387 0
      assets/icons/apps/org.gnome.design.Palette.svg
  37. BIN
      assets/icons/apps/org.gnome.tweaks.png
  38. 249 0
      assets/icons/apps/org.gnome.tweaks.svg
  39. 16 0
      assets/icons/apps/render_appicons.sh
  40. 1 1
      docs/cpu.html
  41. 2 0
      docs/development.html
  42. 2 2
      docs/drivers.html
  43. 153 36
      docs/graphics.html
  44. 5 5
      docs/index.html
  45. 23 20
      docs/network.html
  46. 7 5
      docs/userland.html
  47. 57 0
      include/app_icon_abi.h
  48. 7 0
      include/syscall.h
  49. 55 1
      include/wm_abi.h
  50. 30 1
      kernel/sys_wm.c
  51. 2 0
      kernel/sys_wm.h
  52. 4 0
      kernel/syscall.c
  53. 118 5
      kernel/wm.c
  54. 5 1
      kernel/wm.h
  55. 210 0
      tools/mkappicons.c
  56. 187 26
      user/apps/browser/browser.c
  57. 5 0
      user/apps/browser/browser_html.c
  58. 10 0
      user/apps/browser/js_browser.c
  59. 11 0
      user/apps/browser/js_prelude.js
  60. 52 1077
      user/apps/netmenu/ucmd_netmenu.c
  61. 2929 0
      user/apps/settings/ucmd_settings.c
  62. 981 67
      user/apps/wm/ucmd_wm.c
  63. 435 5
      user/lib/uwm/uwm_lib.c
  64. 24 0
      user/lib/uwm/uwm_lib.h
  65. 20 1
      user/ucmd_lib.h

+ 1 - 0
.gitignore

@@ -40,5 +40,6 @@ firmware/
 /mkcursors
 /cursors/
 /mkicons
+/mkappicons
 /icons/
 /cursor_test

+ 262 - 111
AGENTS.md

@@ -16,8 +16,8 @@ Targets i586 (first-gen Pentium); runs under QEMU or on real hardware.
 | `user/` | `ucmd_lib.h` (the ring-3 syscall wrappers), `service_proto.h` (the init/service protocol and unit table) and `ucmd.ld` |
 | `user/apps/<name>/` | One ring-3 program per directory: entry file `ucmd_<name>.c` plus private modules (`browser/` holds `browser.c`, `browser_html.c`, `js_*.c`, `svg_raster.c`; `chat/` holds `chat_login.c`; `gallery/` holds the real `gallery.c` behind the `ucmd_gallery.c` launcher; `init/` is the PID-1 service manager; `service/` holds the CLI/GUI client and its shared `service_defs.c`/`service_proto.c`; `hello/` has its own `hello.ld`) |
 | `user/lib/<lib>/` | Ring-3 libraries: `libc`, `ngui`, `ufont`, `img`, `tls` (crypto incl. `wpa_crypto.c`), `uhttp`, `ujson`, `uwm` (`uwm_lib.c`), `wifi` (`wifi_store.c`, `wpa.c`); host tests live next to their library |
-| `tools/` | Host tools (`mkpack.c`, `mkrootfs.c`, `mkrtwtbl.c`, `mkcursors.c`, `mkicons.c`, `jsstrip.c`, `mkwoff.py`, `kexec_send.c`, `netkexec_send.c`, `netmonitor.c`, `flash.sh`, `xcursor_trim.py`), the QMP test scripts and `cursor_test.c` |
-| `assets/` | Imported assets: `assets/cursors/adwaita/` (the Adwaita 24 px Xcursor files) and `assets/icons/adwaita/` (the Adwaita symbolic SVGs used as UI icons), both LGPL-3 / CC-BY-SA-3.0, with README and licences |
+| `tools/` | Host tools (`mkpack.c`, `mkrootfs.c`, `mkrtwtbl.c`, `mkcursors.c`, `mkicons.c`, `mkappicons.c`, `jsstrip.c`, `mkwoff.py`, `kexec_send.c`, `netkexec_send.c`, `netmonitor.c`, `flash.sh`, `xcursor_trim.py`), the QMP test scripts and `cursor_test.c` |
+| `assets/` | Imported assets: `assets/cursors/adwaita/` (the Adwaita 24 px Xcursor files), `assets/icons/adwaita/` (the Adwaita symbolic SVGs used as UI icons) and `assets/icons/apps/` (the full-colour GNOME app SVG icons and their 96 px PNG renders), with README, source commits and licences |
 | `host/` | Linux SDL3 browser harness |
 
 The top-level `Makefile` builds everything.  Objects go to `build/`
@@ -155,8 +155,8 @@ make clean
   `install/kernel.bin` and `bin/browser.app`), because the ~1 MB WiFi
   firmware and the ~500 KB gzip browser do not fit a 1.44 MB floppy; a
   floppy boot runs the browser from `BROWSER` on `root.img`.  `bin/init` and
-  `bin/service` are in **both** packs; the current lite gzip pack is ~682 KB
-  and the floppy image still has ~390 KB of internal padding.  The kernel
+  `bin/service` are in **both** packs; the current lite gzip pack is ~744 KB
+  and the floppy image still has ~312 KB of internal padding.  The kernel
   itself no longer carries the pack; the boot path loads it into RAM and
   `ramfs_init` takes a private copy (`bin/<name>` mounted at `/ramfs`).
 - The WiFi firmware `firmware/iwlwifi-7265D-29.ucode` (Chromebook) and
@@ -299,7 +299,7 @@ a Pentium 1 (and a Pentium II board without ACPI) on the UP path.
 | `0x60000` | No longer a rootfs staging area: the legacy stage copies each 16 KB chunk straight to `0x900000`.  The kernel BSS/boot stack may use this range |
 | `_end`    | Kernel end (linker symbol; `kernel.ld` keeps `_end <= 0x90000` so the top of the low-memory gap and the EBDA stay untouched).  BSS and the boot stack may extend past `0x60000` |
 | (in-image) | Bootstrap/protected-mode stack: 8 KB `.stack` NOLOAD section, `__boot_stack_top`/`__boot_stack_bottom` (travels with the kernel) |
-| `0x900000`| Legacy boot-time rootfs pack written directly by `vesa_stage.S` (reserved by `mm_init` until `ramfs_init` takes its copy, then freed); `mm_init` places the frame bitmap in the first RAM after it (`0xB08000` with today's ~2.13 MB pack, at most `0xD00000`; the `mm: bitmap ...` boot line reports the actual address); process stacks and kexec staging also start here |
+| `0x900000`| Legacy boot-time rootfs pack written directly by `vesa_stage.S` (reserved by `mm_init` until `ramfs_init` takes its copy, then freed); `mm_init` places the frame bitmap in the first RAM after it (the `mm: bitmap ...` boot line reports the actual address, at most `0xD00000`); process stacks and kexec staging also start here |
 | `0x100000`| VGA shadow buffer (`VGA_SHADOW_BASE`, `vga.h`) |
 
 The legacy stage uses `0x3000..0x6FFF` as a 16 KB-chunk rootfs staging
@@ -547,9 +547,26 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   newest window and keeps the keyboard focus on startup, and composites the
   canvases into the shadow.  A normal
   window has no visible frame: its `WM_TITLE_H` title bar starts at the
-  window origin and a resize band (`WM_RESIZE_IN` 1 px inside,
-  `WM_RESIZE_OUT` 3 px outside every outer edge) is the edge/corner resize
-  grab area.  The focused title bar uses
+  window origin, the title text is inset `WM_TITLE_PAD` (8 px) from the left
+  edge, and the close control is the Adwaita `window-close` icon in the top
+  right (3 px from the edge, no red button fill); it is dimmed while idle,
+  turns white while the pointer is over it and shows the hand cursor.  A
+  hover change repaints only the two affected button rectangles.  Every
+  normal window casts a soft 10 px (`WM_SHADOW_SPREAD`) drop shadow through
+  `usurf_window_shadow()` (`uwm_lib.c`): the ring darkens with a rounded
+  distance falloff, so its corners fade in a curve.  Shadows are painted
+  after the windows, back to front, so a front
+  window's shadow falls on the windows behind it and is clipped by every
+  window in front; popovers stay flat.  The shadow can be turned off in the
+  Settings app; the WM then uses a zero spread (`shadow_px`), so the damage
+  paths still work without a ring.  Geometry damage expands by the
+  spread, and a focused drag copies the window block but repaints the old
+  and new ring strips with `draw_rect()` because the ring's background is
+  stationary and must not be block-copied.  A resize
+  band (`WM_RESIZE_IN` 1 px inside,
+  `WM_RESIZE_OUT` 4 px outside every outer edge) is the edge/corner resize
+  grab area; corner squares reach `WM_CORNER_IN` (12 px) along both edges.
+  The focused title bar uses
   the toolkit highlight `ngui_theme_dark.selection`.  The boot
   console stays visible until the WM attaches (`wm_server_attach` disables
   it), so a missing `/ramfs/bin/wm` leaves the kernel boot log on screen and
@@ -575,19 +592,30 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   keeping the grab point at the same fraction of the title bar.  While
   dragging, screen edges and the facing edges of windows that overlap on the
   other axis resist the window: it stays flush until the pointer overshoots
-  by `WM_RESIST` (24 px) (`resist_geom()` in `ucmd_wm.c`).  A press in the
-  resize band (1 px inside, 3 px outside) along any edge or corner starts a
-  resize: the grabbed edges follow the pointer while the opposite edges stay
+  by `WM_RESIST` (24 px) (`resist_geom()` in `ucmd_wm.c`).  The Settings
+  *Windows* page can turn edge snapping (`wm_prefs.snap`) and that resistance
+  (`wm_prefs.resist`) off independently; double-click maximize stays
+  available.  The WM exchanges the prefs with the kernel through
+  `SYS_WM_PREFS` (128), reads the current copy from `wm_status` on every
+  `SYS_WM_POLL`, and replays the saved file at boot.  A press in the
+  resize band (1 px inside, 4 px outside, with 12 px corner squares) along
+  any edge or corner starts a resize: the grabbed edges follow the pointer
+  while the opposite edges stay
   put, clamped to the work area.  The topmost window's band wins over a
   window behind it.  While dragged or resized the WM owns the pointer
   (`SYS_WM_MOUSE_CAPTURE`), so canvas clients see no held button and cannot
-  start a scrollbar drag.  The kernel hit-test uses the same order.
-  The desktop background is `COL_BG` until a wallpaper is installed.  The
-  image viewer pre-renders the current image to a screen-aspect RGB565
-  buffer (at most 1440x810, cropped to cover) and writes one
+  start a scrollbar drag.  The kernel hit-test uses the same order.  A live
+  resize commits at most every `WM_RESIZE_COMMIT_MS` (30 ms) or once the edge
+  moved `WM_RESIZE_MIN_STEP` (8 px), and the release forces the final
+  geometry; the kernel carries the previous front canvas over so the content
+  does not blink black while the client reflows (see the canvas API bullet).
+  The desktop background is `wm_prefs.bg_rgb` (default `#202030`), unless a
+  wallpaper image is installed.  The image viewer and the Settings app's
+  *Appearance* page pre-render an image to a screen-aspect RGB565
+  buffer (at most 1440x810, cropped to cover) and write one
   `struct wm_wallpaper_hdr` (magic `NBWAL1`, width, height) plus the pixels to
   `/data/WALLPAPR.BIN` when the data volume is mounted, else the RAM-only
-  `/share/wallpaper`.  It then calls `SYS_WM_WALLPAPER` (123, op 1), which
+  `/share/wallpaper`.  They then call `SYS_WM_WALLPAPER` (123, op 1), which
   bumps `wm_status.wallpaper_seq`; the WM's loop sees the new sequence,
   reloads the file (`/data` first, then `/share`), rebuilds its x/y
   nearest-neighbour maps and repaints.  The WM has no image decoder: it
@@ -597,9 +625,10 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   at the row and is indexed with absolute screen x, so a partial damage rect
   paints exactly the same pixels as a full redraw; adding x0 to both shifted
   the wallpaper inside the rect and left the previous window pixels behind
-  while dragging.  A missing or invalid file falls back to `COL_BG`.  The
-  file survives a reboot on an installed board because it lives on the
-  `NEBOSDATA` volume.
+  while dragging.  A missing or invalid file falls back to the configured
+  colour.  The file survives a reboot on an installed board because it lives
+  on the `NEBOSDATA` volume; Settings can remove it, which unlinks both
+  copies and signals the WM.
   The NebOS banner in the top-left corner is the start button.  Clicking it
   opens the WM's Windows-like start menu, a flat overlay panel drawn by the
   WM (not a window, so it does not consume a `WM_MAX_WINDOWS` slot).  It is
@@ -607,14 +636,39 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   first row is the dim `Applications` caption, `theme.panel_alt` hover rows
   and a rounded Power tile.  It lists every self-contained GUI app in the
   pack -- Terminal, Files, Web, Gallery, Chat, Clock, Text editor, Colors,
-  Mines, Cards, Disks, Tasks, Services, Settings and Date & Time -- with a
-  coloured letter tile and a hover highlight, shrinks its row height to fit
-  short panels, and closes on an outside press.  The last row, Power, opens a
-  submenu with Reboot and Power off; both spawn the privileged kernel
-  command through `SYS_SPAWN_KCMD` with no tty.  The menu floats above every
-  window and is redrawn with the brightness OSD overlay.  The bar notice and
-  the right-aligned status never draw left of `WM_BAR_LEFT_END`
+  Mines, Cards, Disks, Tasks, Services, Settings and Date & Time -- with its
+  full-colour GNOME app icon and a hover highlight (the coloured letter tile
+  is only the fallback when the icon bundle is absent), shrinks its row
+  height to fit short panels, and closes on an outside press.  The last row,
+  Power, opens a submenu with Reboot and Power off; both spawn the privileged
+  kernel command through `SYS_SPAWN_KCMD` with no tty.  The menu floats above
+  every window and is redrawn with the brightness OSD overlay.  The bar
+  notice and the right-aligned status never draw left of `WM_BAR_LEFT_END`
   (`wm_abi.h`).
+  A macOS-like dock is always visible at the bottom centre, drawn by the WM
+  as an overlay (not a work-area reservation).  Its 13 pinned slots are
+  Terminal, Files, Web, Chat, Text editor, Gallery, Clock, Colors, Mines,
+  Cards, Disks, Tasks and Settings, with a thin separator before Settings;
+  Services and Date & Time stay in the start menu.  Icons use a 48 px base
+  (24 px on very narrow screens) on a translucent rounded panel.  The
+  pointer's distance to each fixed base slot drives a squared 1.0..1.75x
+  scale (8.8 fixed point) over about 2.5 slots; the scaled icons are laid out
+  with their real widths, the row is recentred, and per-frame easing makes
+  the magnification wave follow the pointer.  The hovered icon gets a name
+  pill; a dot under an icon marks a running app.  Clicking a running app
+  focuses its window (matched by canvas title: `term`, `Files`, `Browser`,
+  ...), otherwise it goes through the same launcher path as the start menu;
+  Settings opens or focuses the Settings window.  While the pointer is over
+  an icon, the panel or its label, the WM takes `SYS_WM_MOUSE_CAPTURE` so
+  clicks and wheel events cannot leak to the window underneath; the capture
+  is released on leave (or after the button is released).  The dock joins
+  `wm_overlays()`, and window damage intersecting it repaints it.  A
+  focused-window drag that starts with the shadow partly covered by the dock
+  (or the brightness OSD) takes the full-repaint path instead of the block
+  copy, so overlay pixels cannot be dragged along as window content.  It is
+  not auto-hidden and does not support reordering or badges; because it
+  overlays the screen bottom, a window's bottom resize band is unreachable
+  until the window is moved up.
   The right status cluster is a single button, not one per label.
   `draw_bar()` records the rectangle from the leftmost temperature/clock item
   through the rightmost AC/battery icon, paints one rounded hover pill behind
@@ -623,8 +677,8 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   share the same `BAR_BTN_Y`/`BAR_BTN_H` geometry and rounded style, so their
   pills stop one pixel above the rainbow separator; both turn selection-blue
   while their panel is open.  A click anywhere in the cluster opens the
-  control panel (whose Date & Time section has the editor; the start menu's
-  Clock entry opens the analog clock).
+  control-center popover (the start menu's Clock entry opens the analog
+  clock).
   The rightmost bar item is the AC/battery status icon: the Adwaita
   `ac-adapter` symbol while the adapter is online and the `battery` outline
   with our own level fill inside on battery.  To its left is the network
@@ -635,14 +689,15 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   when a WiFi card is present but not associated).  The WM polls
   `SYS_NET_INFO` (and
   `SYS_WIFI_STATUS` only while WiFi is active) at 1 Hz.  The whole right
-  status cluster toggles one `/ramfs/bin/netmenu` control popover, anchored
-  flush against the bottom of the top bar and the right screen edge
-  (`u_wm_set_geom`).  It opens
-  collapsed: the battery/clock summary and
-  the Quick settings pills are visible, while the network, power-mode and
-  date/time settings are hidden until their pill is clicked.  A pill toggles
-  its section in place; the panel resizes itself to the content height (up to
-  the screen) and scrolls when a section is taller.  A popover is a chromeless
+  status cluster toggles one `/ramfs/bin/netmenu` quick-settings popover,
+  anchored flush against the bottom of the top bar and the right screen edge
+  (`u_wm_set_geom`).  It shows the battery/clock summary, a brightness slider
+  when a panel PWM exists, and six pills: Network, Power, Date & Time,
+  Appearance, Windows and About.  A pill is a launcher, not an inline editor:
+  it calls `SYS_WM_OPEN_SETTINGS` (129), the WM opens or focuses
+  `/ramfs/bin/settings` at that section and writes the request to
+  `/share/settings.req`, and the popover closes.  A running Settings window
+  consumes that file and switches panes.  A popover is a chromeless
   `WIN_F_POPOVER`
   canvas window (`u_win_create_popover`): the WM skips the title bar/close/
   resize chrome and treats it as always topmost in painting and hit-testing.
@@ -652,7 +707,25 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   window starts its content one title bar below the origin; a popover uses
   the origin directly).  An outside press dismisses the
   popover and then continues with the normal click handling; a second click
-  on the status cluster toggles it.
+  on the status cluster toggles it.  The titled Settings window itself is a
+  normal canvas window: a left sidebar with the six sections and a scrollable
+  right pane.  Network keeps the NIC selection, DHCP, Wi-Fi scan/join/saved
+  list and connection details; Power has the three P-state modes, brightness
+  and AC/battery state; Date & Time edits the RTC and runs SNTP; Appearance
+  selects a desktop colour and can browse the VFS mounts for a wallpaper
+  image (decoded with the image library and written in the same pre-scaled
+  RGB565 format the viewer uses); Windows toggles shadows, edge snapping and
+  drag resistance; About shows version, display, uptime, memory and CPU
+  temperature.  The WM is the only process that may focus another window, so
+  start menu, dock and popover launchers all go through `SYS_WM_OPEN_SETTINGS`
+  and the WM's `open_settings()`: it reuses the window titled `Settings`,
+  writes the section request, or spawns the app and keeps its pid.  Window
+  preferences are the `struct wm_prefs` in `wm_abi.h`: the kernel keeps the
+  authoritative copy, `SYS_WM_PREFS` (128) gets/sets it, the WM reads it from
+  `wm_status` at every poll and replays the saved file at boot after
+  `boot_ready` (with the same retry window as the wallpaper) from
+  `/data/SETTINGS.CFG`, else `/share/settings.cfg`.  The Settings app saves
+  the same `struct wm_prefs_file` after every change.
   The start menu entries spawn the same pack binaries (`Chat` ->
   `/ramfs/bin/chat`, `Tasks` -> `/ramfs/bin/process`, `Services` ->
   `/ramfs/bin/service --gui`, `Disks` -> `/ramfs/bin/disks`, ...).  When the full date/time would cross
@@ -685,11 +758,18 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   (121) takes/releases the pointer for a WM drag or resize (see the Mouse
   cursors bullet).
   `SYS_WIN_RESIZE_SELF` (115) lets a canvas window grow or shrink itself and
-  `SYS_SCREEN_INFO` (116) returns the framebuffer dimensions; the panel uses
-  them to collapse to the pills or grow over an expanded section.  The kernel
+  `SYS_SCREEN_INFO` (116) returns the framebuffer dimensions; apps size their
+  popovers and panels from them.  The kernel
   refuses a self-resize while the WM owns a frame, and the caller retries.  The WM
   composites the front canvas; presented frames carry monotonic seq
-  counters, so the WM can never lose one.  `content_gen` comes from a global
+  counters, so the WM can never lose one.  `SYS_WM_RESIZE` carries the
+  window-origin delta (new minus old) in `struct wm_size.dx/dy`;
+  `wm_resize_window()` copies the old front canvas into the new one anchored
+  by that delta before freeing it, so a left/top edge drag keeps the content
+  in place and the newly exposed strip is the only black area until the owner
+  acknowledges (`SYS_WIN_ACK_RESIZE`) and presents its reflowed frame.  The
+  client's back buffer stays zeroed on purpose: it paints and presents a full
+  frame after the ack.  `content_gen` comes from a global
   counter and is unique per window creation, so a close followed by a new
   window in the same slot forces a remap instead of reusing a stale front
   canvas mapping.  The ring-3 WM refreshes `SYS_WM_INFO`/`SYS_WM_WIN_MAP`
@@ -824,11 +904,11 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   sees the right century.  `SYS_RTC_GET`/`SYS_RTC_SET` (104/105)
   expose the full `struct sys_datetime`; `SYS_RTC_HMS`/`SYS_RTC_DATETIME`
   (56/69) stay the small read-only views.  The WM top-bar date/time is a
-  click target that opens the control panel's inline Date & Time editor; the
-  start menu's Date & Time entry spawns `/ramfs/bin/settime`, whose "Sync
-  NTP" button fetches UTC through `SYS_NTP_SYNC` and writes it with
-  `SYS_RTC_SET`; the `date` command prints the classic `date` line and a
-  small `+FORMAT` subset.
+  click target for the quick-settings popover; the Settings app's Date &
+  Time page has the editor (the start menu's Date & Time entry still
+  spawns `/ramfs/bin/settime`, whose "Sync NTP" button fetches UTC through
+  `SYS_NTP_SYNC` and writes it with `SYS_RTC_SET`; the `date` command prints
+  the classic `date` line and a small `+FORMAT` subset).
 - **Fonts**: `ufont.c/h`, `ufont_ttf.c`, `ufont_draw.c`, `ufont_file.c`,
   `ufont_woff.c` — a
   fixed-point (26.6, no FPU) TrueType parser and antialiased rasterizer for
@@ -1051,20 +1131,24 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   failure.  Every receive/send goes through `netdev_rx_frame()`/
   `netdev_tx_frame()`, which keep the 32-bit frame byte counters behind
   `SYS_NET_INFO.rx_bytes/tx_bytes` (the `process` monitor's network graph).
-  The top-bar status cluster opens `ucmd_netmenu.c`, the control
-  panel.  It lists every present driver through `SYS_NET_DEVLIST` (111),
-  selects one
-  through `SYS_NET_SELECT` (112) and runs DHCP; the same popover lists scanned
+  The top-bar status cluster opens `ucmd_netmenu.c`, the quick-settings
+  popover.  Its Network pill asks the WM to open or focus
+  `ucmd_settings.c` at the Network page.  That page lists every present
+  driver through `SYS_NET_DEVLIST` (111), selects one
+  through `SYS_NET_SELECT` (112) and runs DHCP; the same page lists scanned
   WiFi networks, marks the ones in `/data/WIFI.CFG` as saved, joins them with
   the stored passphrase, and has a Saved view that forgets individual networks.
-  The panel is an ngui popover: a battery/AC and clock summary, a brightness
-  slider (when a panel PWM exists), and a Quick settings grid of
-  `ngui_tile`s for Network, the P-state power mode (`SYS_CPUFREQ`) and
-  Date & Time.  Clicking a tile expands that section in place: the network
-  devices/Wi-Fi/connection area (built with `ngui_section` and
-  `ngui_list_row`), three power-mode rows, or an inline date/time editor
-  (fields, Set, Now, Sync NTP — no separate `settime` window).  It opens as a
-  `WIN_F_POPOVER` canvas window, not as a titled window.
+  The settings window is a normal titled canvas window with a left sidebar and
+  a scrollable right pane.  The popover itself is only a launcher: a
+  battery/AC and clock summary, a brightness slider (when a panel PWM exists),
+  and a 2-column `ngui_tile` grid for Network, Power, Date & Time, Appearance,
+  Windows and About.  Clicking a tile calls `SYS_WM_OPEN_SETTINGS`, closes the
+  popover, and the WM opens or focuses the Settings window at that section.
+  The Settings pages are the network devices/Wi-Fi/connection area (built with
+  `ngui_section` and `ngui_list_row`), three power-mode rows plus brightness
+  and AC/battery state, an inline date/time editor (fields, Set, Now, Sync
+  NTP), an appearance page with desktop colours and an image file picker, the
+  WM shadow/snapping/resistance toggles, and an About page.
   Hidden SSIDs are omitted, and
   BSSIDs that share an SSID/security collapse to the strongest entry (the
   active BSSID wins while connected).  `wifi.c` (the Intel
@@ -1159,9 +1243,9 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   `netdev_shutdown()` always calls `wifi_shutdown()` before a kexec (the RX
   ring would keep writing into reused pages).  The ring-3 side is
   `ucmd_wifi.c` (`wifi`, `wifi up|scan|connect <ssid> [pass]|disconnect`,
-  `wifi connectfile <path>` for the control panel's staged SSID/pass/BSSID
-  record, `wifi saved` to list the saved networks, `wifi autoconnect` for the
-  boot helper and `wifi forget [ssid]`),
+  `wifi connectfile <path>` for the Settings Network page's staged
+  SSID/pass/BSSID record, `wifi saved` to list the saved networks, `wifi
+  autoconnect` for the boot helper and `wifi forget [ssid]`),
   `wpa.c/h` (4-way + group handshake, key descriptor v2) and
   `wpa_crypto.c/h` (SHA-1, HMAC, PBKDF2, PRF, AES-128, RFC 3394 unwrap; host
   test `make test-wpa`).  After the handshake `wifi connect` installs the
@@ -1258,8 +1342,8 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   `2357:011f`)**: `rtl8821au.c/h` ports the Linux rtw88 8821A/USB bring-up
   (`rtw88xxa_power_on()`, `__rtw_download_firmware_legacy()`,
   `rtw_parse_tbl_phy_cond()`, `rtw88xxa_set_channel()`) behind the same
-  entry points as `iwl_mvm.c`, so `wifi.c`, `wifi`, the netmenu and
-  autoconnect work unchanged.  The USB device probe (registered before
+  entry points as `iwl_mvm.c`, so `wifi.c`, `wifi`, the Settings network page
+  and autoconnect work unchanged.  The USB device probe (registered before
   RNDIS; `USB_MAX_DEVICE_PROBES` is 6) matches the Linux `rtw88_8821au` ID
   list, takes the bulk-IN and up to four bulk-OUT endpoints and sets the
   configuration; nothing is powered on until the first `wifi` command.
@@ -1290,7 +1374,7 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   USB errors, a disconnected port or a re-enumeration set `fatal`, and
   `wifi.c` reloads on the next use.  Tested by QEMU `usb-host` passthrough
   on xHCI (C-cut chip, firmware 42.4): 2.4 + 5 GHz scan, WPA2-PSK connect
-  and DHCP through the control panel.
+  and DHCP through the Settings Network page.
 - **Mouse cursors**: the set is GNOME's Adwaita theme (adwaita-cursors 51,
   LGPL-3 or CC-BY-SA-3.0).  `assets/cursors/adwaita/` holds its Xcursor
   files trimmed to the 24 px images (`tools/xcursor_trim.py`; the X11 alias
@@ -1314,8 +1398,8 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   `CURSOR_DEFAULT`; a WM restart clears the override.  The ring-3 WM
   overrides with resize arrows on the resize band and while
   resizing, the move cross during a title-bar drag
-  (once it moved), and a hand over the start button, the start menu and the
-  status cluster.  ngui
+  (once it moved), and a hand over the start button, the start menu, the
+  status cluster, the dock and a window's close icon.  ngui
   resets `ui->cursor` to the arrow for every redrawn frame (begin returned
   1), `ngui_text_input` asks for the I-beam (not-allowed when disabled),
   apps use `ngui_cursor_rect()`/`ngui_set_cursor()`, and `ngui_end_ex()`
@@ -1355,6 +1439,25 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   of code per app and the floppy has a few hundred bytes to spare).
   `browser-host` symlinks the repository's `icons/` into its `/ramfs` like
   `fonts/`.
+- **App icons**: the start menu and the dock use full-colour GNOME app
+  icons rather than symbolic masks.  `assets/icons/apps/` holds the upstream
+  SVGs unchanged (Console, Nautilus, Epiphany, Fractal, Text Editor, Adwaita
+  Demo, Clocks, Palette, Mines, Aisleriot, Disk Utility, System Monitor,
+  Tweaks, Settings and Calendar), the per-file upstream commit and licence
+  in its README, and a committed 96x96 PNG render of each; the PNGs are the
+  build input and `assets/icons/apps/render_appicons.sh` (rsvg-convert) is
+  the maintainer-only regeneration step.  This avoids both the in-tree
+  SVG rasterizer's gradient/transform limits and a build-time rsvg
+  dependency.  `include/app_icon_abi.h` defines the append-only
+  `APP_ICON_LIST` and the `NBAPP1` bundle: 16-byte header plus one
+  premultiplied RGB565+alpha image (3 bytes/pixel) per icon.
+  `tools/mkappicons.c` decodes the PNGs with the in-tree image library and
+  writes `icons/apps96.icn` (~415 KB raw, ~29 KB gzip), packed in **both**
+  packs.  `uwm_lib.c` loads it once into BSS and `usurf_app_icon()` scales
+  it (box filter for the 48 px dock and 18 px menu icons, bilinear for the
+  magnified sizes) with correct premultiplied source-over for 16/24/32 bpp.
+  The WM still has no image decoder.  Without the bundle the start menu and
+  dock fall back to the coloured letter tiles.
 - **Mouse**: `mouse.c/h` — cursor move/draw shared by the PS/2 path
   (IntelliMouse including the 4th-byte wheel, Cirrus/Radeon/Intel hardware
   cursor) and the USB backend.  `cur_x/cur_y` are the hotspot; the image is
@@ -1496,7 +1599,7 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   and on Nehalem the C3/C6 and package residency; the Airmont line adds the
   FSB, nominal MHz, turbo pstate/VID, VID range and the live `PERF_CTL`.
   `cpufreq [auto|min|max|off|<pstate>]` overrides the governor on both;
-  `SYS_CPUFREQ` exposes the same mode set/get to the control panel.
+  `SYS_CPUFREQ` exposes the same mode set/get to the Settings Power page.
 - **CPU temperature**: `thermal.c/h` — Intel DTS through `IA32_THERM_STATUS`
   (MSR `0x19C`).  Each CPU samples itself once a second from its scheduler
   tick (`struct cpu.temp_c`), and `SYS_CPU_TEMP` (`sys_info.c`) exposes the
@@ -1741,7 +1844,9 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   `background-image` with
   `repeat`/`position`/`size` (`auto` keeps the legacy stretch, `cover` and
   `contain` scale the image), plus the `background` shorthand URL,
-  font size (`px`/`%`/`em`/`rem`, resolved against the parent for `em`/`%`),
+  font size (`px`/`pt` (4/3 px)/`%`/`em`/`rem`, resolved against the parent
+  for `em`/`%`), a definite-width table centred by a `<center>` parent or
+  `align=center` (not by CSS `text-align`; Hacker News),
   the `font` shorthand, numeric weights, `!important`, line-height,
   alignment, margins, padding, per-side borders, `list-style: none`,
   `text-transform: uppercase`, `display`, explicit/percentage block
@@ -1755,7 +1860,13 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   grids and `repeat(N, 1fr)`/`repeat(N, minmax(0,1fr))` equal-column grids
   (Tailwind `grid-cols-N`; `grid_auto` = `BR_GRID_FIXED` + N), `aspect-ratio`
   as the preferred height of an auto-height box (`aspect-video`/
-  `aspect-square` frames), table colspan and percentage columns, and basic
+  `aspect-square` frames), table colspan and percentage columns (columns
+  whose one-line widths do not fit get their min-content width plus a share
+  of the rest in proportion to max - min, as in CSS auto table layout, and a
+  one-column fallback row is scaled down to the table as well as up: a
+  Hacker News comment page used to lay out 5000 px wide; fallback rows
+  cache the table's column widths per pass, which removed an O(rows^2)
+  text measurement), a `<br>` on an empty line is one empty line, and basic
   `float: left/right` columns.  Inline and inline-block `<svg>` icons are
   line runs like `<img>` (`RUN_SVG`), and an inline-block holding only
   inline text with no box of its own stays in the text line instead of
@@ -2487,7 +2598,7 @@ filesystem commands operate inside a mount, e.g. `cat /floppy1/HELLO.TXT`).
 `cpuinfo`, `ls`, `cat`, `save`, `rm`, `mkdir`, `rmdir`, `meminfo`, `top`, `process`, `spin`,
 `clock`, `colors`, `settime`, `date`, `files`, `disks`, `gallery`, `chat`, `view`, `sensors`, `powerinfo`, `mouseinfo`, `storage`, `netinfo`, `netip`, `netdns`, `host`, `dhcp`, `ping`,
 `pong`, `netsend`, `netrecv`, `netlog`, `netconsole`, `netregs`, `netloop`,
-`netreset`, `websrv`, `curl`, `wifi`, `netmenu`, `solitaire` and `hello` are files in `/ramfs/bin`
+`netreset`, `websrv`, `curl`, `wifi`, `netmenu`, `settings`, `solitaire` and `hello` are files in `/ramfs/bin`
 (packed by the Makefile), found through the shell's PATH; the rest are kernel
 commands spawned as processes, or builtins (`cd`, `path`, `help`, `clear`).
 
@@ -2554,7 +2665,8 @@ reloads stage kernel + gzip pack, or a raw runtime pack (`cmds-dev`/
 (8 MB, `kexec.h`; `PAYLOAD_MAX` in `payload.c` and `netkexec_send.c` match).  The UI
 font subsets live in the pack under `fonts/`, the WiFi firmware under
 `firmware/`, the mouse cursors at `cursors/adwaita24.cur` (full pack only),
-the UI icons at `icons/adwaita16.icn` (both packs) and the flat kernel at `install/kernel.bin` (full pack only;
+the UI icons at `icons/adwaita16.icn` and the full-colour app icons at
+`icons/apps96.icn` (both packs), and the flat kernel at `install/kernel.bin` (full pack only;
 `install self` reads it).  The floppy images use `cmds-lite.pack` (no
 firmware, cursor bundle, `install/kernel.bin` or `bin/browser.app`, to stay
 inside 1.44 MB; the browser launcher falls back to `BROWSER` on `root.img`).
@@ -3076,12 +3188,13 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
    with `--gc-sections`; the current full pack with the UI fonts, both
    WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 6000 454,608 bytes,
    ~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
-   bytes) and `install/kernel.bin` is ~2.13 MiB gzip (~2 MB under the
-   cap), inflating to ~4.4 MB, which adds about
-   half a second to the boot; the floppy lite pack is ~682 KiB gzip and
-   deliberately omits the firmware, `install/kernel.bin` and the browser
-   (`BROWSER` on `root.img` is the floppy copy).  `libdeflate-gzip -12` is still preferred.  Over
-   115200 serial a raw `cmds-dev` pack (4.3 MiB) now takes about four
+   bytes), the 15 full-colour app icons and `install/kernel.bin` is
+   ~2.21 MB gzip (~2 MB under the cap), inflating to ~4.7 MB, which adds
+   about half a second to the boot; the floppy lite pack is ~744 KB gzip
+   and deliberately omits the firmware, the cursor bundle,
+   `install/kernel.bin` and the browser (`BROWSER` on `root.img` is the
+   floppy copy).  `libdeflate-gzip -12` is still preferred.  Over
+   115200 serial a raw `cmds-dev` pack (4.7 MB) now takes about four
    minutes; use `net-cmds` (~45 s in QEMU).
 9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
     board that exposes only MP tables stays UP (deliberate; there is no test
@@ -3146,7 +3259,7 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
 
 21. The TCP backlog's early-request buffers cost 8 KB of kernel BSS
     (8 slots x 1 KB), and the FAT listing cache another 5 KB.  The command
-    pack is out of the kernel now; after the WiFi/netmenu/install code and the
+    pack is out of the kernel now; after the WiFi/install code and the
     per-connection TCP queues moved to the frame allocator, `_end` is
     ~0x8ef20 before (with the 6200/6300 DVM layer, the RTL8821AU driver, the
     8×16 boot-console font, the IOAPIC/AMD-thermal additions and the safe
@@ -3154,7 +3267,10 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     ~0x8bf20 once the frame bitmap moved out of BSS; with the ioremap
     window, the EHCI handoff fix, the boot-scan log ring, the init bootstrap,
     parent-pid tree kill, the tty control syscalls and `TTY_MAX` 16 it is
-    ~0x8f260, ~3.4 KB below the `0x90000` wall, and the
+    ~0x8e260, ~7.5 KB below the `0x90000` wall.  The WM and `sys_wm.o`
+    build with `-Os` because their extra settings code otherwise pushed the
+    `.data` end across a page boundary and moved the 4 KB-aligned BSS by a
+    whole page; the
     remaining limit
     is kernel code/buffers only.
 
@@ -3196,7 +3312,10 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     an inert document (`.call(parsed, "body")`) answer for that document:
     DOMPurify used to get the page's real `<body>` and empty it.
     Also missing: `defer`/`async` ordering,
-    `document.implementation.createDocument`, canvas/2D contexts, user-state
+    `document.implementation.createDocument`, canvas/2D/WebGL contexts
+    (`<canvas>.getContext()` returns `null` for every type, like a browser
+    with them disabled, so MapLibre on maps.nebulon.de reports "Failed to
+    initialize WebGL" instead of a TypeError), user-state
     pseudo-classes (`:hover`, `:focus`, ...), `:nth-child(... of S)` and
     pseudo-elements other than `::before`/`::after`; generated content is
     text, or an empty icon box with a background colour and a `data:`
@@ -3314,8 +3433,9 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     playing, `pause`/`load` do nothing, `paused` is true).  Bare `&` characters are
     consumed by the entity decoder instead of looping forever.  A page with
     no `html`/`body` background gets the dark default canvas unless its
-    computed text colour is dark, in which case the canvas is white like a
-    normal browser's.  `@layer` ranks nested layers flat by first
+    computed text colour is dark or mid-grey (luminance below ~150 of 255,
+    so Hacker News' #828282 counts), in which case the canvas is white like
+    a normal browser's.  `@layer` ranks nested layers flat by first
     appearance (a parent layer's own rules lose to its sublayers, the spec
     says the reverse).
     Downloads are capped at the helper's 4 MB, run one at a time, cannot be
@@ -3525,34 +3645,48 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     window yet and uses a byte-oriented AES-CCM per frame, so high RX
     throughput is CPU-bound.  The driver was written against the Linux iwlwifi
     sources without hardware in the loop; expect bring-up debugging on the
-    Chromebook.  The kernel budget is tight: WiFi added ~28 KB with both
-    firmware layers, `_end` is ~0x85ca0 with the RTL8821AU driver (~41 KB
-    below the `0x90000` wall).
-
-36. Control panel limits (`ucmd_netmenu.c`): building the device list probes
-    every driver, so opening the menu on a machine with an unconfigured USB
+    Chromebook.  The kernel budget stays tight (see item 21 for the current
+    `_end`); the settings syscalls are small and `wm.o`/`sys_wm.o` build
+    with `-Os`.
+
+36. Settings and control-center limits (`ucmd_settings.c`, `ucmd_netmenu.c`):
+    the Settings window is the only editor; the top-bar popover holds a
+    summary, brightness and six launcher pills.  The WM opens or focuses one
+    window titled `Settings`, and section requests are a small
+    `/share/settings.req` file the app polls (250 ms) and consumes; spawning
+    `settings` manually from a terminal can still create a second window, so
+    two instances can race the same request file and the fixed
+    `/share/netmenu.wifi` record.  Building the device list probes every
+    driver, so opening the Network page on a machine with an unconfigured USB
     NIC can take a moment (USB control transfers) and may initialize a device
-    that was not the boot-time winner.  The panel shows at most four device
-    rows plus a "+N more devices" line, one menu instance is kept open by the
-    WM, and WiFi scanning is refused while associated (use Disconnect first).
-    The panel opens at a compact height (the summary plus the Quick settings
-    pills) and calls `SYS_WIN_RESIZE_SELF` to grow over an expanded section;
-    it is clamped to the screen and the section scrolls when it is taller.
-    The brightness card and the Power mode pill are hidden when the machine
-    has no panel PWM / P-state control.  The inline Date & Time editor writes
-    the RTC and can block for a 5 s NTP sync.  Closing the panel with an
-    outside click kills the netmenu process without cancelling an already
-    started `wifi` helper.  The staged
-    `/share/netmenu.wifi` record contains the WPA2 passphrase until the
-    `wifi` helper reads and unlinks it; the path is fixed, so two concurrent
-    netmenu instances (e.g. one launched from a terminal) would overwrite
-    each other.  The `wifi` helper is asynchronous: closing the menu does not
-    cancel a connection attempt.  Saved credentials live in plaintext
-    `/data/WIFI.CFG` (8.3), hold up to 16 networks, and are retried at boot;
-    `wifi saved` lists them, `wifi forget [ssid]` removes one and the menu's
-    Saved view has a Forget button per network.  A network saved with a wrong
-    passphrase is tried again at every boot until it is forgotten (Saved view
-    or `wifi forget <ssid>`) and joined again with the correct passphrase.
+    that was not the boot-time winner.  The page shows at most four non-WiFi
+    device rows plus a "+N more devices" line, and WiFi scanning is refused
+    while associated (use Disconnect first).  Brightness and the P-state rows
+    are hidden when the machine has no panel PWM / frequency control.  The
+    Date & Time page writes the RTC and its Sync NTP can block the app for a
+    5 s NTP timeout.  Closing Settings does not cancel an already started
+    `wifi` helper.  The staged `/share/netmenu.wifi` record contains the WPA2
+    passphrase until the `wifi` helper reads and unlinks it.  The `wifi`
+    helper is asynchronous: closing the window does not cancel a connection
+    attempt.  Saved credentials live in plaintext `/data/WIFI.CFG` (8.3),
+    hold up to 16 networks, and are retried at boot; `wifi saved` lists them,
+    `wifi forget [ssid]` removes one and the Settings Saved view has a Forget
+    button per network.  A network saved with a wrong passphrase is tried
+    again at every boot until it is forgotten (Saved view or
+    `wifi forget <ssid>`) and joined again with the correct passphrase.
+    The Appearance page's file picker stops at 96 entries per directory,
+    starts at `/data` (else `/share`, else the VFS root), lists the mount
+    table for `/`, and decodes a chosen image in the app (4 MB file, 24 MB
+    decode arena); the window blocks while that decode runs.  The desktop
+    colour is only visible while no wallpaper image is installed, and
+    removing the image unlinks both `/data/WALLPAPR.BIN` and
+    `/share/wallpaper`.  Window preferences are saved in
+    `/data/SETTINGS.CFG` (8.3) when the data volume is mounted, otherwise
+    only the RAM copy `/share/settings.cfg` survives until reboot; the WM
+    retries the file for ten seconds after `boot_ready`, matching the
+    wallpaper retry window.  The prefs structure is not versioned beyond
+    `WM_PREFS_VERSION`, so an old `/data` file is ignored rather than
+    migrated.
 
 37. `/data` limits: the data partition is a plain FAT volume, so file names
     are 8.3 until `fat.c` gains LFN write support; there is no fsck, resize or
@@ -3606,14 +3740,17 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     `_end` (see item 21).
 
 40. Wallpaper limits: one screen-aspect image pre-scaled to at most
-    1440x810 (cropped to cover, no crop/position choice), no slideshow and
-    no Clear action in the viewer.  The WM reads the whole file when
+    1440x810 (cropped to cover, no crop/position choice), no slideshow.  The
+    image viewer and the Settings Appearance page can set or remove it; the
+    Settings picker lists at most 96 entries per directory and decodes a file
+    up to 4 MB.  The WM reads the whole file when
     `SYS_WM_WALLPAPER` bumps the sequence, so installing/switching a
     wallpaper blocks the WM for the FAT read; the storage is
     `/data/WALLPAPR.BIN` on installed boards and the RAM-only
     `/share/wallpaper` otherwise.  The WM keeps a 2.4 MB static copy plus a
     256 KB RGB565->BGRA table (16/24 bpp convert per pixel), all inside the
-    4 MB user image window, and has no image decoder of its own.
+    4 MB user image window, and has no image decoder of its own.  A desktop
+    colour (`wm_prefs.bg_rgb`) is available only while no image is installed.
 
 41. Init/service limits: the service table is static (`service_defs.c`), with
     no enable/disable persistence, dependencies, targets, one-shot services,
@@ -3640,3 +3777,17 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     kernel (window/canvas bookkeeping, input routing and shadow); a full
     userland display service would need a generic framebuffer/shared-memory
     and input API and is not part of this change.
+
+42. Dock limits: the 13 slots are a fixed pinned list, with no drag-reorder,
+    auto-hide, badges or dynamic recent apps.  Running state and
+    click-to-focus match the canvas title (`term`, `Files`, `Browser`, ...)
+    rather than an executable id, so an app whose title changes would lose
+    its dot; multiple windows of one app count as one entry.  The dock is an
+    overlay and is always visible, so a window that reaches the screen
+    bottom loses its bottom resize band and the pixels under the dock until
+    it is moved up.  Click/scroll suppression uses
+    `SYS_WM_MOUSE_CAPTURE`, which is entered on the frame after the pointer
+    arrives; a move-and-press inside the same 10 ms WM tick can still reach
+    the window below.  The WM keeps the whole `NBAPP1` bundle (415 KB) plus
+    the 2.4 MB wallpaper and 256 KB RGB565 table in its BSS, inside the 4 MB
+    user image window.

+ 40 - 9
Makefile

@@ -71,7 +71,7 @@ EFI_LDFLAGS = -nostdlib -Wl,--subsystem,10 -Wl,-e,efi_main \
               -Wl,--image-base,0x0 -Wl,--dynamicbase \
               -Wl,--enable-reloc-section -Wl,--no-insert-timestamp
 
-.PHONY: all clean run run-smp run-floppy run-usb run-uhci run-ehci run-ehci-asix run-xhci run-xhci-asix run-net run-rndis run-e1000 run-ahci run-amd test-amd test-usb test-install run-serial floppy usb uefi run-uefi test-uefi flash dev net-dev net-install cmds-dev net-cmds browser-dev gallery-dev compat-serve netmon monitor test-crypto test-wpa test-ccmp test-images test-images-asan test-libc test-js test-font test-font-asan test-svg test-touchpad test-chat test-chat-e2e test-wifi-store test-cursors fonts kernel-dev kernel-net-dev rootfs nowm
+.PHONY: all clean run run-smp run-floppy run-usb run-uhci run-ehci run-ehci-asix run-xhci run-xhci-asix run-net run-rndis run-e1000 run-ahci run-amd test-amd test-usb test-install run-serial floppy usb uefi run-uefi test-uefi flash dev net-dev net-install cmds-dev net-cmds browser-dev gallery-dev compat-serve netmon monitor test-crypto test-wpa test-ccmp test-images test-images-asan test-libc test-js test-font test-font-asan test-svg test-touchpad test-chat test-chat-e2e test-wifi-store test-cursors fonts appicons kernel-dev kernel-net-dev rootfs nowm
 
 all: floppy.img usb.img final.bin root.img image.bin
 
@@ -124,9 +124,13 @@ kobj = $(if $(filter vesa_stage,$(1)),$(B)/boot/$(1).o,$(if $(filter \
        font_8x16 inflate,$(1)),$(B)/common/$(1).o,$(B)/kernel/$(1).o))
 KERNEL_OBJS = $(foreach n,$(KERNEL_LINK_ORDER),$(call kobj,$(n)))
 
+# Size-sensitive kernel objects build -Os.  wm/sys_wm carry the settings
+# ABI; at -O2 their extra .text/.data pushed the .data end across a page
+# boundary and moved the 4 KB-aligned BSS by a whole page.
 KERNEL_OS = terminal disk fat nvidia nv50 uhci ohci ehci xhci asix rndis \
 	iwl_trans iwl_mvm iwl_dvm wifi_fw rtl8821au wifi ccmp usb lsusb lspci \
-	peek ne2000 r8168 blkdev fatdetect fatformat format install usbmsc dbg vfs
+	peek ne2000 r8168 blkdev fatdetect fatformat format install usbmsc dbg vfs \
+	wm sys_wm
 $(addprefix $(B)/kernel/,$(addsuffix .o,$(KERNEL_OS))): OPT = -Os
 $(B)/kernel/e1000e.o: OPT = -Oz
 # The ACPI table/S5 parser and the poweroff path are cold boot/shutdown code
@@ -399,7 +403,7 @@ UCMDS = cpuinfo ls cat save rm mkdir rmdir \
         netconsole netregs netloop netreset net100 netmac curl \
         files view sensors powerinfo mines solitaire \
         settime date gallery websrv browser chat \
-        wifi netmenu disks membench init service
+        wifi netmenu settings disks membench init service
 
 app = $(U)/apps/$(1)/ucmd_$(1)
 UCMD_ELFS = $(foreach a,$(UCMDS),$(call app,$(a)).elf)
@@ -481,8 +485,15 @@ $(call app,curl).elf: $(call app,curl).o $(UHTTP_OBJS) $(IMG_DECODE_OBJS) $(INFL
 $(call app,wifi).elf: $(call app,wifi).o $(WIFI_STORE) $(WPA_OBJS) $(UL)/tls/tls_rng.o $(UL)/tls/tls_sha256.o $(UCMD_LD) $(LIBC_A)
 	$(ULINK)
 
-# Control panel: NIC list, WiFi scan, saved networks, power and date/time.
-$(call app,netmenu).elf: $(call app,netmenu).o $(WIFI_STORE) $(NGUI_APP) $(UCMD_LD) $(LIBC_A)
+# Control panel: battery/clock summary, brightness and the Settings pills.
+$(call app,netmenu).elf: $(call app,netmenu).o $(NGUI_APP) $(UCMD_LD) $(LIBC_A)
+	$(ULINK)
+
+# Settings: sidebar sections, network/WiFi management, clock, power,
+# appearance (wallpaper picker) and window-manager preferences.
+$(call app,settings).o: OPT = -Os
+$(call app,settings).o: XFLAGS = $(SECTION_CFLAGS) $(LIBC_INC)
+$(call app,settings).elf: $(call app,settings).o $(WIFI_STORE) $(IMG_DECODE_OBJS) $(UL)/img/img_file.o $(INFLATE) $(NGUI_APP) $(UCMD_LD) $(LIBC_A)
 	$(ULINK)
 
 # Storage manager: devices, partitions, mount policies, format/install.
@@ -701,15 +712,21 @@ test-ccmp: ccmp_test
 
 # Host image-library tests.  The corpus and expected hashes are committed;
 # tools/gen_img_tests.py regenerates them.
-IMGTEST_SRCS = $(addprefix user/lib/img/,img_test.c img.c img_mem.c img_blit.c \
+IMGLIB_SRCS = $(addprefix user/lib/img/,img.c img_mem.c img_blit.c \
                img_png.c img_bmp.c img_gif.c img_gif_anim.c img_jpeg.c img_tga.c \
                img_pnm.c img_ico.c img_pam.c) common/inflate.c
+IMGTEST_SRCS = user/lib/img/img_test.c $(IMGLIB_SRCS)
 IMGTEST_DEPS = $(wildcard user/lib/img/*.h) common/inflate.h testdata/images/expected.h
 IMGTEST_INC = -I. -Icommon -Iinclude -Iuser
 
 img_test: $(IMGTEST_SRCS) $(IMGTEST_DEPS)
 	gcc -O2 -fwrapv -Wall -Wextra $(IMGTEST_INC) -o $@ $(IMGTEST_SRCS)
 
+# mkappicons decodes the committed 96 px app icon PNGs with the same image
+# library and writes the NBAPP1 bundle (include/app_icon_abi.h).
+mkappicons: tools/mkappicons.c include/app_icon_abi.h $(IMGLIB_SRCS) $(IMGTEST_DEPS)
+	gcc -O2 -fwrapv -Wall -Wextra $(IMGTEST_INC) -o $@ tools/mkappicons.c $(IMGLIB_SRCS)
+
 test-images: img_test
 	./img_test
 
@@ -856,14 +873,28 @@ $(ICON_FILE): mkicons $(wildcard $(ICON_THEME)/*.svg)
 	@mkdir -p icons
 	./mkicons $(ICON_THEME) 16 $@
 
+# Full-colour app icons: upstream GNOME app SVGs and their committed 96 px
+# PNG renders (assets/icons/apps/) converted by mkappicons into one NBAPP1
+# bundle (include/app_icon_abi.h).  The WM loads it from
+# /ramfs/icons/apps96.icn; both the full and the floppy lite pack carry it.
+# ~415 KB inflated, ~30 KB in the gzip pack.  render_appicons.sh is the
+# maintainer-only SVG -> PNG step and is not part of the build.
+APPICON_THEME = assets/icons/apps
+APPICON_FILE = icons/apps96.icn
+appicons: $(APPICON_FILE)
+$(APPICON_FILE): mkappicons $(filter-out %/README %/COPYING%,$(wildcard $(APPICON_THEME)/*.png)) include/app_icon_abi.h
+	@mkdir -p icons
+	./mkappicons $(APPICON_THEME) 96 $@
+
 HELLO_ELF = $(U)/apps/hello/hello.elf
 PACK_FILES = $(foreach a,$(UCMDS),bin/$(a)=$(call app,$(a)).elf) \
              bin/hello=$(HELLO_ELF) \
              bin/gallery.app=gallery.elf \
              $(foreach f,$(FONT_FILES),$(f)=$(f)) \
-             $(ICON_FILE)=$(ICON_FILE)
+             $(ICON_FILE)=$(ICON_FILE) \
+             $(APPICON_FILE)=$(APPICON_FILE)
 PACK_DEPS = $(UCMD_ELFS) $(HELLO_ELF) browser.elf gallery.elf $(FONT_FILES) \
-            $(ICON_FILE) mkpack
+            $(ICON_FILE) $(APPICON_FILE) mkpack
 PACK_CURSOR_FILES = $(CURSOR_FILE)=$(CURSOR_FILE)
 # The browser (~500 KB gzip) is in the full pack only: a floppy boot runs it
 # from BROWSER on root.img, which the bin/browser launcher already tries.
@@ -1290,7 +1321,7 @@ clean:
 	      cmds.pack cmds-lite.pack cmds_pack_gz.bin cmds_lite_gz.bin \
 	      rootfs.bin rootfs-full.bin cmds.img \
 	      firmware/*.ucode firmware/*.tbl firmware/*.bin cursors/*.cur icons/*.icn \
-	      mkpack mkrootfs mkrtwtbl mkcursors mkicons jsstrip cursor_test kexec_send netkexec_send netmonitor \
+	      mkpack mkrootfs mkrtwtbl mkcursors mkicons mkappicons jsstrip cursor_test kexec_send netkexec_send netmonitor \
 	      browser-host host-curl \
 	      ufont_test ufont_test_asan svg_test touchpad_gesture_test \
 	      ujson_test uhttp_cookie_test chat_login_test tls_test wpa_test \

+ 170 - 0
assets/icons/apps/COPYING.CC-BY-SA-4.0

@@ -0,0 +1,170 @@
+Creative Commons Attribution-ShareAlike 4.0 International
+
+ Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
+
+Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
+
+Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
+
+Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described.
+
+Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
+
+Creative Commons Attribution-ShareAlike 4.0 International Public License
+
+By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
+
+Section 1 – Definitions.
+
+     a.	Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
+
+     b.	Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
+
+     c.	BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
+
+     d.	Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
+
+     e.	Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
+
+     f.	Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
+
+     g.	License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
+
+     h.	Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
+
+     i.	Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
+
+     j.	Licensor means the individual(s) or entity(ies) granting rights under this Public License.
+
+     k.	Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
+
+     l.	Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
+
+     m.	You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
+
+Section 2 – Scope.
+
+     a.	License grant.
+
+          1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
+
+               A. reproduce and Share the Licensed Material, in whole or in part; and
+
+               B. produce, reproduce, and Share Adapted Material.
+
+          2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
+
+          3. Term. The term of this Public License is specified in Section 6(a).
+
+          4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
+
+          5. Downstream recipients.
+
+               A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
+
+               B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
+
+               C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
+
+          6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
+
+     b.	Other rights.
+
+          1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
+
+          2. Patent and trademark rights are not licensed under this Public License.
+
+          3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
+
+Section 3 – License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the following conditions.
+
+     a.	Attribution.
+
+          1. If You Share the Licensed Material (including in modified form), You must:
+
+               A. retain the following if it is supplied by the Licensor with the Licensed Material:
+
+                    i.	identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
+
+                    ii.	a copyright notice;
+
+                    iii. a notice that refers to this Public License;
+
+                    iv.	a notice that refers to the disclaimer of warranties;
+
+                    v.	a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
+
+               B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
+
+               C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
+
+          2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
+
+          3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
+
+     b.	ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
+
+          1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
+
+          2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
+
+          3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
+
+Section 4 – Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
+
+     a.	for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
+
+     b.	if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
+
+     c.	You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
+For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
+
+Section 5 – Disclaimer of Warranties and Limitation of Liability.
+
+     a.	Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
+
+     b.	To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
+
+     c.	The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
+
+Section 6 – Term and Termination.
+
+     a.	This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
+
+     b.	Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
+
+          1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
+
+          2. upon express reinstatement by the Licensor.
+
+     c.	For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
+
+     d.	For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
+
+     e.	Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
+
+Section 7 – Other Terms and Conditions.
+
+     a.	The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
+
+     b.	Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
+
+Section 8 – Interpretation.
+
+     a.	For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
+
+     b.	To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
+
+     c.	No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
+
+     d.	Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
+
+Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
+
+Creative Commons may be contacted at creativecommons.org.

+ 117 - 0
assets/icons/apps/COPYING.GPL-2.0

@@ -0,0 +1,117 @@
+GNU GENERAL PUBLIC LICENSE
+Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
+
+Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification follow.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
+
+1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
+
+     a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
+
+     b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
+
+     c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
+
+3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
+
+     a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
+
+     b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
+
+     c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
+
+If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
+
+5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
+
+This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
+
+9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
+
+NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
+
+     one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
+
+     This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+
+     This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+     You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
+
+     Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
+
+     Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice

+ 232 - 0
assets/icons/apps/COPYING.GPL-3.0

@@ -0,0 +1,232 @@
+GNU GENERAL PUBLIC LICENSE
+Version 3, 29 June 2007
+
+Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
+
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+Preamble
+
+The GNU General Public License is a free, copyleft license for software and other kinds of works.
+
+The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
+
+To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
+
+For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
+
+Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
+
+For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
+
+Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
+
+Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
+
+The precise terms and conditions for copying, distribution and modification follow.
+
+TERMS AND CONDITIONS
+
+0. Definitions.
+
+“This License” refers to version 3 of the GNU General Public License.
+
+“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
+
+“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
+
+To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
+
+A “covered work” means either the unmodified Program or a work based on the Program.
+
+To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
+
+To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
+
+An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
+
+1. Source Code.
+The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
+
+A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
+
+The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
+
+The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
+
+The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
+
+The Corresponding Source for a work in source code form is that same work.
+
+2. Basic Permissions.
+All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
+
+You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
+
+Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
+
+3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
+
+When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
+
+4. Conveying Verbatim Copies.
+You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
+
+You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
+
+5. Conveying Modified Source Versions.
+You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
+
+     a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
+
+     b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
+
+     c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
+
+     d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
+
+A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
+
+6. Conveying Non-Source Forms.
+You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
+
+     a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
+
+     b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
+
+     c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
+
+     d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
+
+     e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
+
+A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
+
+A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
+
+“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
+
+If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
+
+The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
+
+Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
+
+7. Additional Terms.
+“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
+
+When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
+
+Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
+
+     a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
+
+     b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
+
+     c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
+
+     d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
+
+     e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
+
+     f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
+
+All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
+
+If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
+
+Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
+
+8. Termination.
+You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
+
+However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
+
+Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
+
+Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
+
+9. Acceptance Not Required for Having Copies.
+You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
+
+10. Automatic Licensing of Downstream Recipients.
+Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
+
+An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
+
+You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
+
+11. Patents.
+A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
+
+A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
+
+Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
+
+In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
+
+If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
+
+If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
+
+A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
+
+Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
+
+12. No Surrender of Others' Freedom.
+If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
+
+13. Use with the GNU Affero General Public License.
+Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
+
+14. Revised Versions of this License.
+The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
+
+If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
+
+Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
+
+15. Disclaimer of Warranty.
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+16. Limitation of Liability.
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+17. Interpretation of Sections 15 and 16.
+If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
+
+     <one line to give the program's name and a brief idea of what it does.>
+     Copyright (C) <year>  <name of author>
+
+     This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+     This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+
+     You should have received a copy of the GNU General Public License along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
+
+     <program>  Copyright (C) <year>  <name of author>
+     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+     This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
+
+You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
+
+The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.

+ 176 - 0
assets/icons/apps/COPYING.LGPL-2.1

@@ -0,0 +1,176 @@
+GNU LESSER GENERAL PUBLIC LICENSE
+
+Version 2.1, February 1999
+
+Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL.  It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.
+
+This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.
+
+When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.
+
+To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.
+
+For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.
+
+We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.
+
+To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.
+
+Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.
+
+Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.
+
+When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.
+
+We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.
+
+For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.
+
+In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.
+
+Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.
+
+The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.
+
+GNU LESSER GENERAL PUBLIC LICENSE
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".
+
+A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.
+
+The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)
+
+"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
+
+Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.
+
+1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
+
+You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
+
+     a) The modified work must itself be a software library.
+
+     b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
+
+     c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
+
+     d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.
+
+(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
+
+3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.
+
+Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
+
+This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
+
+4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
+
+If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.
+
+5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
+
+However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.
+
+When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.
+
+If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)
+
+Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.
+
+6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.
+
+You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:
+
+     a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)
+
+     b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.
+
+     c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.
+
+     d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.
+
+     e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
+
+For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
+
+It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.
+
+7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:
+
+     a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.
+
+     b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
+
+8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
+
+9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.
+
+10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.
+
+11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
+
+This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
+
+12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
+
+13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.
+
+14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
+
+NO WARRANTY
+
+15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Libraries
+
+If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).
+
+To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
+
+     one line to give the library's name and an idea of what it does.
+     Copyright (C) year  name of author
+
+     This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
+
+     This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+
+     You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:
+
+Yoyodyne, Inc., hereby disclaims all copyright interest in
+the library `Frob' (a library for tweaking knobs) written
+by James Random Hacker.
+
+signature of Ty Coon, 1 April 1990
+Ty Coon, President of Vice
+That's all there is to it!

+ 42 - 0
assets/icons/apps/README

@@ -0,0 +1,42 @@
+Full-colour application icons (96 px)
+
+Source:  the GNOME project's application repositories on
+         https://gitlab.gnome.org, at the commit named per file below.
+         The SVGs are the upstream app icons, copied unchanged.  The PNGs
+         next to them are 96x96 rasterizations made with rsvg-convert
+         (render_appicons.sh); tools/mkappicons.c converts those into the
+         NBAPP1 bundle (include/app_icon_abi.h), premultiplied RGB565+alpha,
+         packed as /ramfs/icons/apps96.icn.
+
+Licence: per file, from the icon's embedded metadata or, when the icon has
+         no metadata, the application's licence.  The full texts are in the
+         COPYING.* files.  Attribution: "GNOME Project" and the respective
+         application authors, https://www.gnome.org.
+
+Modifications: format conversion only (SVG -> 96 px PNG -> premultiplied
+         RGB565+alpha).  No artwork is edited.
+
+App          Upstream project              Path                                                    Commit                                    Licence
+-----------  ----------------------------  ------------------------------------------------------  ----------------------------------------  -------------------------
+Terminal     GNOME/console                 data/org.gnome.Console.svg                              e32a3ab05e4e                               GPL-3.0-only
+Files        GNOME/nautilus                data/icons/hicolor/scalable/apps/org.gnome.Nautilus.svg 1bf45f7da7b6                               CC-BY-SA-4.0
+Web          GNOME/epiphany                data/icons/hicolor/scalable/apps/org.gnome.Epiphany.svg a308ad5a61b6                               GPL-3.0-only
+Chat         World/fractal                 data/icons/org.gnome.Fractal.svg                        9e964c0ca299                               GPL-3.0-only
+Text editor  GNOME/gnome-text-editor       data/icons/org.gnome.TextEditor.svg                     735c1f20e7dc                               GPL-3.0-only
+Gallery      GNOME/libadwaita              demo/data/org.gnome.Adwaita1.Demo.svg                   b6a1f4552ea0                               LGPL-2.1-only
+Clock        GNOME/gnome-clocks            data/icons/hicolor/scalable/apps/org.gnome.clocks.svg   0a9692f22291                               CC-BY-SA-4.0
+Colors       World/design/palette          data/org.gnome.design.Palette.svg                       fa0b2a68ba6e                               CC-BY-SA-4.0
+Mines        GNOME/gnome-mines             data/icons/hicolor/scalable/org.gnome.Mines.svg         c0b36708c740                               GPL-3.0-only
+Cards        GNOME/aisleriot               data/icons/gnome-aisleriot.svg                          a5b5cd6f016d                               GPL-3.0-only
+Disks        GNOME/gnome-disk-utility      data/icons/hicolor/scalable/apps/org.gnome.DiskUtility.svg 524bd8e1891a                            CC-BY-SA-4.0
+Tasks        GNOME/gnome-system-monitor    data/icons/public/hicolor/scalable/apps/org.gnome.SystemMonitor.svg 27b881fcc26c                 CC-BY-SA-4.0
+Services     GNOME/gnome-tweaks            data/org.gnome.tweaks.svg                               8df1036baeaa                               CC-BY-SA-4.0
+Settings     GNOME/gnome-control-center   data/icons/hicolor/scalable/apps/org.gnome.Settings.svg c6cc59b9736c                               GPL-2.0-or-later
+Date & Time  GNOME/gnome-calendar          data/icons/hicolor/scalable/apps/org.gnome.Calendar.svg 59a4f4c6b5f7                               GPL-3.0-only
+
+The icon NAMES in APP_ICON_LIST (include/app_icon_abi.h) are these file
+basenames without .svg.  APP_ICON_LIST is append-only: the order is both
+the icon id and the order of the images in the NBAPP1 bundle.
+
+The GNOME services icon (GNOME Tweaks) is used for NebOS's start/stop
+Services app; the GNOME Calendar icon is used for Date & Time.

BIN
assets/icons/apps/gnome-aisleriot.png


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2194 - 0
assets/icons/apps/gnome-aisleriot.svg


BIN
assets/icons/apps/org.gnome.Adwaita1.Demo.png


+ 62 - 0
assets/icons/apps/org.gnome.Adwaita1.Demo.svg

@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientTransform="matrix(0.707107 -0.707107 -0.707107 -0.707107 0 290.000005)" gradientUnits="userSpaceOnUse" x1="168.291412" x2="243.244736" y1="77.781746" y2="152.735062">
+        <stop offset="0" stop-color="#8ff0a4"/>
+        <stop offset="1" stop-color="#3584e4"/>
+    </linearGradient>
+    <filter id="b" height="100%" width="100%" x="0%" y="0%">
+        <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
+    </filter>
+    <mask id="c">
+        <g filter="url(#b)">
+            <rect fill-opacity="0.95" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="d">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <mask id="e">
+        <g filter="url(#b)">
+            <rect fill-opacity="0.75" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="f">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <mask id="g">
+        <g filter="url(#b)">
+            <rect fill-opacity="0.4" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="h">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <mask id="i">
+        <g filter="url(#b)">
+            <rect fill-opacity="0.8" height="128" width="128"/>
+        </g>
+    </mask>
+    <linearGradient id="j" gradientUnits="userSpaceOnUse" x1="16" x2="128" y1="96" y2="96">
+        <stop offset="0" stop-color="#3584e4"/>
+        <stop offset="0.428679" stop-color="#62a0ea"/>
+        <stop offset="0.499994" stop-color="#c1d9f7"/>
+        <stop offset="0.571308" stop-color="#62a0ea"/>
+        <stop offset="1" stop-color="#3584e4"/>
+    </linearGradient>
+    <clipPath id="k">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <path d="m 69.65625 117.738281 l 48.082031 -48.082031 c 3.125 -3.125 3.125 -8.1875 0 -11.3125 l -48.082031 -48.082031 c -3.125 -3.125 -8.1875 -3.125 -11.3125 0 l -48.082031 48.082031 c -3.125 3.125 -3.125 8.1875 0 11.3125 l 48.082031 48.082031 c 3.125 3.125 8.1875 3.125 11.3125 0 z m 0 0" fill="url(#a)"/>
+    <g clip-path="url(#d)" mask="url(#c)" transform="matrix(1 0 0 1 -8 -6)">
+        <path d="m 36 68 h 36 v 36 z m 0 0" fill="#ffffff"/>
+    </g>
+    <g clip-path="url(#f)" mask="url(#e)" transform="matrix(1 0 0 1 -8 -6)">
+        <path d="m 96 44 h -24 v 24 z m 0 0" fill="#ffffff"/>
+    </g>
+    <g clip-path="url(#h)" mask="url(#g)" transform="matrix(1 0 0 1 -8 -6)">
+        <path d="m 72 68 h 18 v 18 z m 0 0" fill="#ffffff"/>
+    </g>
+    <g clip-path="url(#k)" mask="url(#i)" transform="matrix(1 0 0 1 -8 -6)">
+        <path d="m 16.496094 67 c -1.171875 2.886719 -0.585938 6.308594 1.765625 8.65625 l 48.082031 48.082031 c 3.132812 3.136719 8.179688 3.136719 11.3125 0 l 48.082031 -48.082031 c 2.351563 -2.347656 2.9375 -5.769531 1.769531 -8.65625 c -0.394531 0.964844 -0.980468 1.871094 -1.769531 2.65625 l -48.082031 48.082031 c -3.132812 3.136719 -8.179688 3.136719 -11.3125 0 l -48.082031 -48.082031 c -0.789063 -0.785156 -1.375 -1.691406 -1.765625 -2.65625 z m 0 0" fill="url(#j)"/>
+    </g>
+</svg>

BIN
assets/icons/apps/org.gnome.Calendar.png


+ 49 - 0
assets/icons/apps/org.gnome.Calendar.svg

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientTransform="matrix(-1 0 0 -1 -0.00005 -172)" gradientUnits="userSpaceOnUse" x1="-12.249268" x2="-115.523453" y1="-288.6633" y2="-288.6633">
+        <stop offset="0" stop-color="#613583"/>
+        <stop offset="0.0433748" stop-color="#af60ef"/>
+        <stop offset="0.0920385" stop-color="#613583"/>
+        <stop offset="0.903034" stop-color="#613583"/>
+        <stop offset="0.955148" stop-color="#874ab4"/>
+        <stop offset="1" stop-color="#3b214e"/>
+    </linearGradient>
+    <linearGradient id="b" gradientTransform="matrix(-1 0 0 -1 123.999942 -177)" gradientUnits="userSpaceOnUse" x1="7.99999" x2="111.999992" y1="-244" y2="-244">
+        <stop offset="0" stop-color="#d5d3cf"/>
+        <stop offset="0.0384615" stop-color="#f6f5f4"/>
+        <stop offset="0.0769231" stop-color="#d5d3cf"/>
+        <stop offset="0.923077" stop-color="#d5d3cf"/>
+        <stop offset="0.961538" stop-color="#eeeeec"/>
+        <stop offset="1" stop-color="#d5d3cf"/>
+    </linearGradient>
+    <linearGradient id="c" gradientTransform="matrix(-1 0 0 -1 -0.00005 -171)" gradientUnits="userSpaceOnUse" x1="-64" x2="-64" y1="-280" y2="-182">
+        <stop offset="0" stop-color="#ffffff"/>
+        <stop offset="1" stop-color="#f6f5f4"/>
+    </linearGradient>
+    <path d="m 108 117 h -88 c -4.417969 0 -8 -4.234375 -8 -9.453125 v -70.09375 c 0 -5.21875 3.582031 -9.453125 8 -9.453125 h 88 c 4.417969 0 8 4.234375 8 9.453125 v 70.09375 c 0 5.21875 -3.582031 9.453125 -8 9.453125 z m 0 0" fill="url(#a)"/>
+    <path d="m 108 115 h -88 c -4.417969 0 -8 -3.582031 -8 -8 v -24 c 0 -4.417969 3.582031 -8 8 -8 h 88 c 4.417969 0 8 3.582031 8 8 v 24 c 0 4.417969 -3.582031 8 -8 8 z m 0 0" fill="url(#b)"/>
+    <path d="m 108 109 h -88 c -4.417969 0 -8 -3.582031 -8 -8 v -69.003906 c 0 -4.417969 3.582031 -8 8 -8 h 88 c 4.417969 0 8 3.582031 8 8 v 69.003906 c 0 4.417969 -3.582031 8 -8 8 z m 0 0" fill="url(#c)"/>
+    <path d="m 20 13 c -4.433594 0 -8 3.566406 -8 8 v 15 h 104 v -15 c 0 -4.433594 -3.566406 -8 -8 -8 z m 0 0" fill="#9141ac"/>
+    <path d="m 12 34 v 2 h 104 v -2 z m 0 0" fill="#613583"/>
+    <g stroke="#fdfcfc" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
+        <path d="m 28 96 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 44 96 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 60 96 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 76 96 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#fbfafa"/>
+        <path d="m 92 96 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#fbfafa"/>
+        <path d="m 108 96 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#fbfafa"/>
+        <path d="m 28 73 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 44 73 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 60 73 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 76 73 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 92 73 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 108 73 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 28 50 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#fbfafa"/>
+        <path d="m 44 50 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 60 50 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 76 50 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 92 50 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+        <path d="m 108 50 c 0 2.210938 -1.789063 4 -4 4 c -2.210938 0 -4 -1.789062 -4 -4 s 1.789062 -4 4 -4 c 2.210937 0 4 1.789062 4 4 z m 0 0" fill="#c0bfbc"/>
+    </g>
+    <path d="m 63.972656 73 c 0 4.402344 -3.570312 7.972656 -7.972656 7.972656 s -7.972656 -3.570312 -7.972656 -7.972656 s 3.570312 -7.972656 7.972656 -7.972656 s 7.972656 3.570312 7.972656 7.972656 z m 0 0" fill="#9141ac"/>
+</svg>

BIN
assets/icons/apps/org.gnome.Console.png


+ 24 - 0
assets/icons/apps/org.gnome.Console.svg

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="11.999989" x2="115.999989" y1="64" y2="64">
+        <stop offset="0" stop-color="#3d3846"/>
+        <stop offset="0.05" stop-color="#77767b"/>
+        <stop offset="0.1" stop-color="#5e5c64"/>
+        <stop offset="0.899999" stop-color="#504e56"/>
+        <stop offset="0.95" stop-color="#77767b"/>
+        <stop offset="1" stop-color="#3d3846"/>
+    </linearGradient>
+    <linearGradient id="b" gradientUnits="userSpaceOnUse" x1="12" x2="112.041023" y1="60" y2="80.988281">
+        <stop offset="0" stop-color="#77767b"/>
+        <stop offset="0.384443" stop-color="#9a9996"/>
+        <stop offset="0.720567" stop-color="#77767b"/>
+        <stop offset="1" stop-color="#68666f"/>
+    </linearGradient>
+    <path d="m 20 22 h 88 c 4.417969 0 8 3.582031 8 8 v 78 c 0 4.417969 -3.582031 8 -8 8 h -88 c -4.417969 0 -8 -3.582031 -8 -8 v -78 c 0 -4.417969 3.582031 -8 8 -8 z m 0 0" fill="url(#a)"/>
+    <path d="m 20 12 h 88 c 4.417969 0 8 3.582031 8 8 v 80 c 0 4.417969 -3.582031 8 -8 8 h -88 c -4.417969 0 -8 -3.582031 -8 -8 v -80 c 0 -4.417969 3.582031 -8 8 -8 z m 0 0" fill="url(#b)"/>
+    <path d="m 20 14 h 88 c 3.3125 0 6 2.6875 6 6 v 80 c 0 3.3125 -2.6875 6 -6 6 h -88 c -3.3125 0 -6 -2.6875 -6 -6 v -80 c 0 -3.3125 2.6875 -6 6 -6 z m 0 0" fill="#241f31"/>
+    <g fill="#62c9ea">
+        <path d="m 46.011719 40.886719 l -14.011719 -7.613281 v 4.726562 l 9.710938 4.628906 v 0.144532 l -9.710938 5.226562 v 4.726562 l 14.011719 -8.210937 z m 0 0"/>
+        <path d="m 50 56 v 4 h 16 v -4 z m 0 0"/>
+    </g>
+</svg>

BIN
assets/icons/apps/org.gnome.DiskUtility.png


+ 444 - 0
assets/icons/apps/org.gnome.DiskUtility.svg

@@ -0,0 +1,444 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   viewBox="0 0 128 128"
+   style="display:inline;enable-background:new"
+   version="1.0"
+   id="svg11300"
+   height="128"
+   width="128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient10247">
+      <stop
+         id="stop10243"
+         offset="0"
+         style="stop-color:#010101;stop-opacity:1;" />
+      <stop
+         id="stop10245"
+         offset="1"
+         style="stop-color:#010101;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient10232">
+      <stop
+         id="stop10228"
+         offset="0"
+         style="stop-color:#47454b;stop-opacity:1" />
+      <stop
+         id="stop10230"
+         offset="1"
+         style="stop-color:#dfdee0;stop-opacity:1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1194">
+      <stop
+         style="stop-color:#5e5c64;stop-opacity:1"
+         offset="0"
+         id="stop1190" />
+      <stop
+         style="stop-color:#77767b;stop-opacity:1"
+         offset="1"
+         id="stop1192" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1188">
+      <stop
+         id="stop1184"
+         offset="0"
+         style="stop-color:#c0bfbc;stop-opacity:1" />
+      <stop
+         id="stop1186"
+         offset="1"
+         style="stop-color:#f6f5f4;stop-opacity:1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1378">
+      <stop
+         style="stop-color:#424048;stop-opacity:1"
+         offset="0"
+         id="stop1366" />
+      <stop
+         id="stop1368"
+         offset="0.04702194"
+         style="stop-color:#f6f5f4;stop-opacity:1" />
+      <stop
+         style="stop-color:#949390;stop-opacity:1"
+         offset="0.09717868"
+         id="stop1370" />
+      <stop
+         id="stop1372"
+         offset="0.89968652"
+         style="stop-color:#d5d3cf;stop-opacity:1" />
+      <stop
+         style="stop-color:#f6f5f4;stop-opacity:1"
+         offset="0.94984329"
+         id="stop1374" />
+      <stop
+         style="stop-color:#424048;stop-opacity:1"
+         offset="1"
+         id="stop1376" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1364">
+      <stop
+         id="stop1352"
+         offset="0"
+         style="stop-color:#000000;stop-opacity:1" />
+      <stop
+         style="stop-color:#424048;stop-opacity:1"
+         offset="0.04702194"
+         id="stop1354" />
+      <stop
+         id="stop1356"
+         offset="0.09717868"
+         style="stop-color:#241f31;stop-opacity:1" />
+      <stop
+         style="stop-color:#241f31;stop-opacity:1"
+         offset="0.89968652"
+         id="stop1358" />
+      <stop
+         id="stop1360"
+         offset="0.94984329"
+         style="stop-color:#424048;stop-opacity:1" />
+      <stop
+         id="stop1362"
+         offset="1"
+         style="stop-color:#000000;stop-opacity:1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1235">
+      <stop
+         style="stop-color:#949390;stop-opacity:1"
+         offset="0"
+         id="stop1231" />
+      <stop
+         style="stop-color:#424048;stop-opacity:1"
+         offset="1"
+         id="stop1233" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient983">
+      <stop
+         id="stop979"
+         offset="0"
+         style="stop-color:#000000;stop-opacity:0.25098041" />
+      <stop
+         id="stop981"
+         offset="1"
+         style="stop-color:#000000;stop-opacity:0.03137255" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1282">
+      <stop
+         id="stop1278"
+         offset="0"
+         style="stop-color:#f6f5f4;stop-opacity:1;" />
+      <stop
+         id="stop1280"
+         offset="1"
+         style="stop-color:#ffffff;stop-opacity:1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1494">
+      <stop
+         id="stop1490"
+         offset="0"
+         style="stop-color:#babdb6;stop-opacity:1;" />
+      <stop
+         id="stop1492"
+         offset="1"
+         style="stop-color:#babdb6;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       gradientUnits="userSpaceOnUse"
+       y2="20"
+       x2="280"
+       y1="172"
+       x1="280"
+       id="linearGradient1496"
+       xlink:href="#linearGradient1494" />
+    <linearGradient
+       gradientTransform="matrix(0.25,0,0,0.25,-1e-5,225)"
+       gradientUnits="userSpaceOnUse"
+       y2="59.234238"
+       x2="318.91211"
+       y1="113.76978"
+       x1="301.62421"
+       id="linearGradient2155"
+       xlink:href="#linearGradient1194" />
+    <linearGradient
+       gradientTransform="matrix(0.25,0,0,0.25,-1e-5,225)"
+       y2="-112.15472"
+       x2="249"
+       y1="125"
+       x1="249"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1057"
+       xlink:href="#linearGradient1188" />
+    <linearGradient
+       gradientTransform="matrix(0.25,0,0,0.25,-1e-5,225)"
+       gradientUnits="userSpaceOnUse"
+       y2="-172"
+       x2="323.00003"
+       y1="217"
+       x1="347.00003"
+       id="linearGradient1284"
+       xlink:href="#linearGradient1282" />
+    <linearGradient
+       y2="619.96387"
+       x2="496"
+       y1="619.96387"
+       x1="177"
+       gradientTransform="matrix(0.25,0,0,0.24305558,-20.00001,91.56432)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1444-3-9"
+       xlink:href="#linearGradient1378" />
+    <linearGradient
+       y2="799.96387"
+       x2="494.99994"
+       y1="799.96387"
+       x1="176"
+       gradientTransform="matrix(0.25,0,0,0.24305558,-20.00001,91.56432)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1121"
+       xlink:href="#linearGradient1364" />
+    <radialGradient
+       r="16"
+       fy="199.58058"
+       fx="128"
+       cy="199.58058"
+       cx="128"
+       gradientUnits="userSpaceOnUse"
+       id="radialGradient1131"
+       xlink:href="#linearGradient983" />
+    <radialGradient
+       r="8"
+       fy="200.07188"
+       fx="127.9371"
+       cy="200.07188"
+       cx="127.9371"
+       gradientTransform="matrix(1.3756505,0,0,1.3756505,-47.996726,-75.471623)"
+       gradientUnits="userSpaceOnUse"
+       id="radialGradient1133"
+       xlink:href="#linearGradient1235" />
+    <linearGradient
+       y2="70.8974"
+       x2="328.0976"
+       y1="125.79309"
+       x1="298.65759"
+       gradientTransform="matrix(0.25,0,0,0.25,-1e-5,225)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient9681"
+       xlink:href="#linearGradient10232" />
+    <radialGradient
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.59826328,0.63515006,-0.1152322,0.10854002,50.709492,158.17297)"
+       r="36.043909"
+       fy="221.95126"
+       fx="62.562256"
+       cy="221.95126"
+       cx="62.562256"
+       id="radialGradient10249"
+       xlink:href="#linearGradient10247" />
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(0,-172)"
+     style="display:inline"
+     id="layer1">
+    <g
+       style="display:inline"
+       id="layer9">
+      <circle
+         r="0"
+         cy="172"
+         cx="32.500057"
+         id="path907"
+         style="opacity:0.05;fill:#ac1d2e;fill-opacity:1;stroke:none;stroke-width:0.01114019px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal" />
+      <rect
+         ry="8"
+         rx="8"
+         y="221.99998"
+         x="24"
+         height="70"
+         width="80"
+         id="rect1480-3-7-1-2"
+         style="display:inline;opacity:1;fill:url(#linearGradient1121);fill-opacity:1;stroke:none;stroke-width:0.01114019px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+      <rect
+         ry="8"
+         rx="8"
+         y="215.99998"
+         x="24"
+         height="70"
+         width="80"
+         id="rect1480-3-7-1"
+         style="display:inline;opacity:1;fill:url(#linearGradient1444-3-9);fill-opacity:1;stroke:none;stroke-width:0.01114019px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+      <rect
+         ry="8.4571428"
+         rx="8"
+         y="180"
+         x="24"
+         height="104"
+         width="80"
+         id="rect1480-6-7"
+         style="display:inline;opacity:1;fill:url(#linearGradient1284);fill-opacity:1;stroke:none;stroke-width:0.01161654px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+      <g
+         transform="matrix(0.25,0,0,0.25,-1e-5,225)"
+         id="g1036"
+         style="display:inline;enable-background:new">
+        <circle
+           style="display:inline;opacity:1;fill:url(#radialGradient1131);fill-opacity:1;stroke:none;stroke-width:0.04456074px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+           id="path1137-3"
+           cx="128"
+           cy="204"
+           r="16" />
+        <circle
+           style="opacity:1;fill:url(#radialGradient1133);fill-opacity:1;stroke:none;stroke-width:0.04456075px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal"
+           id="path1137"
+           cx="128"
+           cy="204"
+           r="8" />
+      </g>
+      <path
+         id="path905"
+         d="m 41.99999,184 c -2.216,0 -4,1.784 -4,4 0,3.31371 -2.68629,6 -6,6 -2.216,0 -4,1.784 -4,4 v 8 c 0,2.216 1.784,4 4,4 3.31371,0 6,2.68629 6,6 -0.003,1.47715 -0.55015,2.90139 -1.5376,4 -5.92217,6.59263 -8.44822,15.13802 -8.4624,24 0,19.88225 16.11775,36 36,36 19.88225,0 36,-16.11775 36,-36 -0.0159,-8.86282 -2.5389,-17.40831 -8.46338,-24 -0.98709,-1.09875 -1.53421,-2.52298 -1.53662,-4 0,-3.31371 2.68629,-6 6,-6 2.216,0 4,-1.784 4,-4 v -8 c 0,-2.216 -1.784,-4 -4,-4 -3.31371,0 -6,-2.68629 -6,-6 0,-2.216 -1.784,-4 -4,-4 z m 22,56 a 6,6 0 0 1 6,6 6,6 0 0 1 -6,6 6,6 0 0 1 -6,-6 6,6 0 0 1 6,-6 z"
+         style="display:inline;opacity:1;fill:#9a9996;fill-opacity:1;stroke:none;stroke-width:0.01114019px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+      <path
+         id="path905-2"
+         d="m 41.99999,182 c -2.216,0 -4,1.784 -4,4 0,3.31371 -2.68629,6 -6,6 -2.216,0 -4,1.784 -4,4 v 8 c 0,2.216 1.784,4 4,4 3.31371,0 6,2.68629 6,6 -0.003,1.47715 -0.55015,2.90139 -1.5376,4 -5.92217,6.59263 -8.44822,15.13802 -8.4624,24 0,19.88225 16.11775,36 36,36 19.88225,0 36,-16.11775 36,-36 -0.0159,-8.86282 -2.5389,-17.40831 -8.46338,-24 -0.98709,-1.09875 -1.53421,-2.52298 -1.53662,-4 0,-3.31371 2.68629,-6 6,-6 2.216,0 4,-1.784 4,-4 v -8 c 0,-2.216 -1.784,-4 -4,-4 -3.31371,0 -6,-2.68629 -6,-6 0,-2.216 -1.784,-4 -4,-4 z m 22,56 a 6,6 0 0 1 6,6 6,6 0 0 1 -6,6 6,6 0 0 1 -6,-6 6,6 0 0 1 6,-6 z"
+         style="display:inline;opacity:1;fill:url(#linearGradient1057);fill-opacity:1;stroke:none;stroke-width:0.01161654px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+      <use
+         height="100%"
+         width="100%"
+         transform="translate(64)"
+         id="use1038"
+         xlink:href="#g1036"
+         y="0"
+         x="0"
+         style="display:inline;enable-background:new" />
+      <path
+         id="path10234"
+         transform="translate(0,172)"
+         d="M 61.398438 42.943359 C 59.000691 42.943359 56.715452 43.492114 54.636719 44.214844 A 0.92704756 0.92704756 0 0 0 54.287109 45.746094 L 64.933594 56.365234 C 66.774137 58.200694 66.774165 61.049176 64.933594 62.884766 L 60.919922 66.888672 C 59.07955 68.723952 56.213419 68.723952 54.373047 66.888672 L 43.724609 56.269531 A 0.92704756 0.92704756 0 0 0 42.195312 56.619141 C 41.470369 58.692571 40.919922 60.974688 40.919922 63.367188 C 40.919922 74.637497 50.101205 83.792969 61.398438 83.792969 C 63.58377 83.792969 65.656448 83.309301 67.583984 82.681641 L 96.205078 111.28711 C 96.439701 111.52173 96.679181 111.73155 96.917969 111.94141 C 100.91393 111.46237 104 107.89952 104 103.54297 L 104 92.753906 L 80.765625 69.535156 C 81.394633 67.613016 81.876953 65.546038 81.876953 63.367188 C 81.876953 52.096878 72.695566 42.943359 61.398438 42.943359 z "
+         style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.11522007;marker:none;enable-background:accumulate;opacity:0.1" />
+      <path
+         d="m 61.398438,209.94922 c -2.54998,0 -4.942101,0.58013 -7.087891,1.32617 a 1.9221205,1.9221205 0 0 0 -0.726563,3.17578 l 10.646485,10.61914 c 1.467365,1.46331 1.467424,3.64593 0,5.10938 l -4.013672,4.0039 c -1.467,1.46294 -3.673625,1.46294 -5.140625,0 L 44.427734,223.56445 a 1.9221205,1.9221205 0 0 0 -3.171875,0.72657 c -0.748509,2.14083 -1.330078,4.53045 -1.330078,7.07617 0,11.80951 9.63912,21.41992 21.472657,21.41992 2.098622,0 4.052678,-0.43747 5.888671,-0.99219 l 28.214844,28.19531 c 5.237257,5.23727 11.930027,4.68446 15.595707,1.02539 3.66568,-3.65906 4.2486,-10.32756 -0.83204,-15.4082 L 81.878906,237.24023 c 0.555729,-1.83129 0.992188,-3.78043 0.992188,-5.87304 0,-11.80952 -9.639342,-21.41797 -21.472656,-21.41797 z"
+         id="path9673"
+         style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient9681);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.11522007;marker:none;enable-background:accumulate" />
+      <use
+         height="100%"
+         width="100%"
+         transform="translate(64,-60)"
+         id="use1038-9"
+         xlink:href="#g1036"
+         y="0"
+         x="0"
+         style="display:inline;enable-background:new" />
+      <use
+         height="100%"
+         width="100%"
+         transform="translate(64,-88)"
+         id="use1038-7"
+         xlink:href="#g1036"
+         y="0"
+         x="0"
+         style="display:inline;enable-background:new" />
+      <use
+         height="100%"
+         width="100%"
+         transform="translate(0,-88)"
+         id="use1038-2"
+         xlink:href="#g1036"
+         y="0"
+         x="0"
+         style="display:inline;enable-background:new" />
+      <use
+         height="100%"
+         width="100%"
+         transform="translate(0,-60)"
+         id="use1038-3"
+         xlink:href="#g1036"
+         y="0"
+         x="0"
+         style="display:inline;enable-background:new" />
+      <path
+         style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;opacity:0.57999998;fill:url(#radialGradient10249);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.11522007;marker:none;enable-background:accumulate"
+         id="path10241"
+         d="m 61.398438,209.84961 c -2.565301,0 -4.968555,0.58169 -7.121094,1.33008 a 2.0222693,2.0222693 0 0 0 -0.763672,3.34179 l 10.646484,10.61914 c 1.429807,1.42586 1.429869,3.54276 0,4.96876 l -4.013672,4.0039 c -1.429422,1.42546 -3.570577,1.42546 -5,0 L 44.498047,223.49414 a 2.0222693,2.0222693 0 0 0 -3.335938,0.76367 c -0.750881,2.14762 -1.335937,4.54824 -1.335937,7.10938 0,11.86378 9.684753,21.51953 21.572266,21.51953 2.090307,0 4.033718,-0.4324 5.861328,-0.98047 l 28.171875,28.1543 c 5.267269,5.26727 12.036159,4.72278 15.738279,1.02734 3.70212,-3.69544 4.27787,-10.43893 -0.83398,-15.55078 L 81.990234,237.21094 c 0.548715,-1.82239 0.980469,-3.76022 0.980469,-5.84375 0,-11.86379 -9.684987,-21.51758 -21.572265,-21.51758 z" />
+      <path
+         id="path2141"
+         d="m 61.39918,211.87039 c -2.25592,0 -4.44247,0.51766 -6.45873,1.21867 l 10.64819,10.61898 c 2.18821,2.18216 2.18821,5.65137 0,7.83365 l -4.01489,4.00387 c -2.18822,2.18216 -5.66701,2.18216 -7.85523,0 L 43.07034,224.92659 c -0.70299,2.01064 -1.22193,4.19123 -1.22193,6.44098 0,10.76797 8.75318,19.49707 19.55077,19.49707 2.25593,0 4.44248,-0.51766 6.45875,-1.21855 l 29.00274,28.98453 c 9.32243,9.32244 21.00762,-2.70043 12.04464,-11.66341 L 79.72802,237.80856 c 0.70298,-2.01064 1.22191,-4.19123 1.22191,-6.44098 0,-10.76797 -8.75317,-19.49719 -19.55077,-19.49719 z"
+         style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient2155);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.11522007;marker:none;enable-background:accumulate" />
+    </g>
+    <g
+       style="fill:url(#linearGradient1496);fill-opacity:1"
+       id="g1480" />
+  </g>
+</svg>

BIN
assets/icons/apps/org.gnome.Epiphany.png


+ 64 - 0
assets/icons/apps/org.gnome.Epiphany.svg

@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="98" x2="108" y1="112" y2="112">
+        <stop offset="0" stop-color="#16529c"/>
+        <stop offset="1" stop-color="#236ac0"/>
+    </linearGradient>
+    <linearGradient id="b" gradientTransform="matrix(0 -1 1 0 -157 121)" gradientUnits="userSpaceOnUse" x1="0.999999" x2="0.999999" y1="215" y2="171">
+        <stop offset="0" stop-color="#2166bb"/>
+        <stop offset="1" stop-color="#89eda9"/>
+    </linearGradient>
+    <filter id="c" height="100%" width="100%" x="0%" y="0%">
+        <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
+    </filter>
+    <mask id="d">
+        <g filter="url(#c)">
+            <rect fill-opacity="0.5" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="e">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <mask id="f">
+        <g filter="url(#c)">
+            <rect fill-opacity="0.5" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="g">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <mask id="h">
+        <g filter="url(#c)">
+            <rect fill-opacity="0.5" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="i">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <path d="m 64 5 c 33.136719 0 60 26.863281 60 60 s -26.863281 60 -60 60 s -60 -26.863281 -60 -60 s 26.863281 -60 60 -60 z m 0 0" fill="url(#a)"/>
+    <path d="m 64 5 c -33.136719 0 -60 26.863281 -60 60 s 26.863281 60 60 60 z m 0 0" fill="url(#b)"/>
+    <path d="m 124 63 c 0 33.136719 -26.863281 60 -60 60 s -60 -26.863281 -60 -60 s 26.863281 -60 60 -60 s 60 26.863281 60 60 z m 0 0" fill="#40a1c8"/>
+    <path d="m 28.003906 64 c 0.125 13.914062 2.882813 27.367188 7.835938 38.25 c -3.941406 2.015625 -7.28125 4.441406 -9.863282 7.160156 c -13.640624 -11.171875 -21.675781 -27.78125 -21.96875 -45.410156 z m 0 0" fill="#49bbb0"/>
+    <path d="m 64 96 v 27 c -4.5 0 -8.988281 -0.507812 -13.375 -1.511719 c -5.800781 -4.058593 -10.894531 -10.691406 -14.78125 -19.238281 c 7.902344 -4.039062 17.867188 -6.25 28.15625 -6.25 z m 0 0" fill="#378bde"/>
+    <path d="m 99.996094 64 c -0.125 13.914062 -2.882813 27.367188 -7.839844 38.25 c 3.945312 2.015625 7.28125 4.441406 9.863281 7.160156 c 13.640625 -11.171875 21.675781 -27.78125 21.972657 -45.410156 z m 0 0" fill="#266ec6"/>
+    <path d="m 64 64 v 59 c 4.5 0 8.988281 -0.507812 13.375 -1.511719 c 13.472656 -9.433593 22.390625 -32.097656 22.621094 -57.488281 z m 0 0" fill="#378bde"/>
+    <path d="m 64 96 v 27 c 4.5 0 8.988281 -0.507812 13.375 -1.511719 c 5.800781 -4.058593 10.894531 -10.691406 14.78125 -19.238281 c -7.902344 -4.039062 -17.867188 -6.25 -28.15625 -6.25 z m 0 0" fill="#266ec6"/>
+    <path d="m 92.160156 102.25 c -3.890625 8.546875 -8.984375 15.175781 -14.78125 19.238281 c 9.035156 -2.066406 17.472656 -6.203125 24.644532 -12.078125 c -2.582032 -2.71875 -5.921876 -5.144531 -9.863282 -7.160156 z m 0 0" fill="#1e62b5"/>
+    <path d="m 64 3 c -33.136719 0 -60 26.863281 -60 60 c 0 0.332031 0.003906 0.667969 0.007812 1 h 59.992188 z m 0 0" fill="#53d795"/>
+    <path d="m 50.625 4.507812 c -9.039062 2.070313 -17.476562 6.203126 -24.648438 12.078126 c 2.582032 2.722656 5.921876 5.144531 9.867188 7.164062 c 3.890625 -8.550781 8.984375 -15.179688 14.78125 -19.242188 z m 0 0" fill="#72e99a"/>
+    <path d="m 64 3 c -4.5 0 -8.984375 0.507812 -13.375 1.507812 c -13.664062 9.570313 -22.625 32.734376 -22.625 58.492188 c 0 0.332031 0 0.667969 0.003906 1 h 35.996094 z m 0 0" fill="#49bbb0"/>
+    <path d="m 64 3 c -4.5 0 -8.984375 0.507812 -13.375 1.507812 c -5.796875 4.0625 -10.890625 10.691407 -14.78125 19.242188 c 7.90625 4.039062 17.867188 6.25 28.15625 6.25 z m 0 0" fill="#53d795"/>
+    <path d="m 64 3 c 33.136719 0 60 26.863281 60 60 c 0 0.332031 -0.003906 0.667969 -0.007812 1 h -59.992188 z m 0 0" fill="#378bde"/>
+    <path d="m 77.375 4.507812 c 9.039062 2.070313 17.476562 6.203126 24.648438 12.078126 c -2.582032 2.722656 -5.921876 5.144531 -9.863282 7.160156 c -3.894531 -8.546875 -8.988281 -15.175782 -14.785156 -19.238282 z m 0 0" fill="#40a1c8"/>
+    <path d="m 64 3 c 4.5 0 8.988281 0.507812 13.375 1.507812 c 13.664062 9.570313 22.625 32.734376 22.625 58.492188 c 0 0.332031 0 0.667969 -0.003906 1 h -35.996094 z m 0 0" fill="#40a1c8"/>
+    <path d="m 64 3 c 4.5 0 8.988281 0.507812 13.375 1.507812 c 5.796875 4.0625 10.890625 10.691407 14.78125 19.238282 c -7.90625 4.042968 -17.867188 6.253906 -28.15625 6.253906 z m 0 0" fill="#49bbb0"/>
+    <g clip-path="url(#e)" mask="url(#d)" transform="matrix(1 0 0 1 -8 -16)">
+        <path d="m 169.5 24 v 1 h 13 v -1 z m 0 0" fill="#2e3436"/>
+    </g>
+    <g clip-path="url(#g)" mask="url(#f)" transform="matrix(1 0 0 1 -8 -16)">
+        <path d="m 169.5 21 v 1 h 13 v -1 z m 0 0" fill="#2e3436"/>
+    </g>
+    <g clip-path="url(#i)" mask="url(#h)" transform="matrix(1 0 0 1 -8 -16)">
+        <path d="m 169.5 27 v 1 h 13 v -1 z m 0 0" fill="#2e3436"/>
+    </g>
+</svg>

BIN
assets/icons/apps/org.gnome.Fractal.png


+ 55 - 0
assets/icons/apps/org.gnome.Fractal.svg

@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="8" x2="58" y1="69.999985" y2="69.999985">
+        <stop offset="0" stop-color="#4aaac9"/>
+        <stop offset="0.16" stop-color="#8bddf7"/>
+        <stop offset="0.32" stop-color="#4aaac9"/>
+        <stop offset="1" stop-color="#4aaac9"/>
+    </linearGradient>
+    <linearGradient id="b" gradientUnits="userSpaceOnUse" x1="31.462524" x2="39" y1="113.997253" y2="113.997253">
+        <stop offset="0" stop-color="#4aaac9"/>
+        <stop offset="0.469318" stop-color="#74d7f7"/>
+        <stop offset="1" stop-color="#4aaac9"/>
+    </linearGradient>
+    <linearGradient id="c" gradientUnits="userSpaceOnUse" x1="104" x2="120" y1="84" y2="84">
+        <stop offset="0" stop-color="#1a5fb4"/>
+        <stop offset="0.5" stop-color="#4296ff"/>
+        <stop offset="1" stop-color="#1a5fb4"/>
+    </linearGradient>
+    <clipPath id="d">
+        <path d="m 8 24 h 97 v 84 h -97 z m 0 0"/>
+    </clipPath>
+    <clipPath id="e">
+        <path d="m 24 24 h 80 c 8.835938 0 16 7.164062 16 16 v 52 c 0 8.835938 -7.164062 16 -16 16 h -80 c -8.835938 0 -16 -7.164062 -16 -16 v -52 c 0 -8.835938 7.164062 -16 16 -16 z m 0 0"/>
+    </clipPath>
+    <linearGradient id="f" gradientUnits="userSpaceOnUse" x1="55.608135" x2="71.783539" y1="100" y2="48.532928">
+        <stop offset="0" stop-color="#81dffe"/>
+        <stop offset="1" stop-color="#9bf8fe"/>
+    </linearGradient>
+    <filter id="g" height="100%" width="100%" x="0%" y="0%">
+        <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
+    </filter>
+    <mask id="h">
+        <g filter="url(#g)">
+            <rect fill-opacity="0.35" height="128" width="128"/>
+        </g>
+    </mask>
+    <clipPath id="i">
+        <rect height="152" width="192"/>
+    </clipPath>
+    <path d="m 24 28 h 72 c 8.835938 0 16 7.164062 16 16 v 52 c 0 8.835938 -7.164062 16 -16 16 h -72 c -8.835938 0 -16 -7.164062 -16 -16 v -52 c 0 -8.835938 7.164062 -16 16 -16 z m 0 0" fill="url(#a)"/>
+    <path d="m 24 28 h 80 c 8.835938 0 16 7.164062 16 16 v 48 c 0 8.835938 -7.164062 16 -16 16 h -80 c -8.835938 0 -16 -7.164062 -16 -16 v -48 c 0 -8.835938 7.164062 -16 16 -16 z m 0 0" fill="#53bde0"/>
+    <path d="m 24 100 v 12 h 4 c 2.210938 0 4 1.789062 4 4 v 7 c 0 1.992188 1.183594 3.792969 3.011719 4.585938 c 1.828125 0.789062 3.953125 0.417968 5.40625 -0.945313 l 13.523437 -12.707031 c 1.324219 -1.242188 3.070313 -1.933594 4.882813 -1.933594 h 9.175781 v -12 z m 0 0" fill="url(#b)" fill-rule="evenodd"/>
+    <path d="m 102 58.566406 h 2 c 8.835938 0 16 7.164063 16 16 v 21.433594 c 0 8.835938 -7.164062 16 -16 16 h -2 c -8.835938 0 -16 -7.164062 -16 -16 v -21.433594 c 0 -8.835937 7.164062 -16 16 -16 z m 0 0" fill="url(#c)"/>
+    <path d="m 86 87 h 18 v 25 h -18 z m 0 0" fill="#1a5fb4"/>
+    <path d="m 48 24 h 56 c 8.835938 0 16 7.164062 16 16 v 52 c 0 8.835938 -7.164062 16 -16 16 h -56 c -8.835938 0 -16 -7.164062 -16 -16 v -52 c 0 -8.835938 7.164062 -16 16 -16 z m 0 0" fill="#3584e4"/>
+    <g clip-path="url(#d)">
+        <g clip-path="url(#e)">
+            <path d="m 78.804688 16.023438 l 0.527343 2.460937 c -1.207031 -0.082031 -2.417969 4.964844 -3.621093 4.988281 c -19.335938 0.371094 -38.003907 14.230469 -39.148438 34.546875 c -0.835938 14.761719 9.570312 29.839844 25.15625 30.488281 c 10.371094 0.433594 20.96875 -6.957031 21.242188 -17.925781 c 0.179687 -7.078125 -4.953126 -14.3125 -12.488282 -14.355469 c -4.683594 -0.027343 -9.484375 3.425782 -9.398437 8.429688 c 0.074219 2.980469 2.300781 6.042969 5.511719 5.902344 c 1.8125 -0.082032 3.691406 -1.488282 3.539062 -3.453125 c -0.078125 -1.042969 -0.921875 -2.128907 -2.0625 -1.996094 c -0.5625 0.066406 -1.148438 0.539063 -1.046875 1.15625 c 0.070313 0.273437 0.285156 0.570313 0.597656 0.5 c 0.121094 -0.03125 0.25 -0.144531 0.214844 -0.28125 c 0 -0.042969 -0.070313 -0.09375 -0.113281 -0.074219 c 0 0.003906 -0.070313 0.023438 0 0.035156 v 0.007813 v -0.003906 v 0.035156 c 0 0.050781 -0.09375 0.050781 -0.136719 0.03125 c -0.121094 -0.066406 -0.113281 -0.242187 -0.070313 -0.347656 c 0.164063 -0.265625 0.542969 -0.230469 0.777344 -0.074219 c 0.519532 0.367188 0.429688 1.117188 0.070313 1.558594 c -0.710938 0.898437 -2.074219 0.726562 -2.867188 0.042968 c -1.5 -1.28125 -1.167969 -3.601562 0.070313 -4.941406 c 2.167968 -2.367187 5.929687 -1.792968 8.074218 0.28125 c 3.601563 3.476563 2.652344 9.308594 -0.675781 12.597656 c -5.359375 5.292969 -14.109375 3.800782 -18.992187 -1.324218 c -7.570313 -7.953125 -5.304688 -20.664063 2.335937 -27.6875 c 11.480469 -10.550782 29.507813 -7.242188 39.363281 3.785156 c 14.414063 16.121094 9.6875 41.066406 -5.855468 54.582031 c -11.121094 9.226563 -22.246094 15.429688 -32.949219 19.4375 c -13.058594 75.445313 -75.230469 6.835938 -81.039063 -4.195312 l 0.285157 -105.054688 z m 0 0" fill="url(#f)"/>
+        </g>
+    </g>
+    <path d="m 24 106 v 2 h 4 c 2.210938 0 4 1.789062 4 4 v 7 c 0 1.992188 1.183594 3.792969 3.011719 4.585938 c 1.828125 0.789062 3.953125 0.417968 5.40625 -0.945313 l 13.523437 -12.707031 c 1.324219 -1.242188 3.070313 -1.933594 4.882813 -1.933594 h 9.175781 v -2 z m 0 0" fill="#81dffe" fill-rule="evenodd"/>
+    <g clip-path="url(#i)" mask="url(#h)" transform="matrix(1 0 0 1 -8 -16)">
+        <path d="m 173 17 h 8 c 1.65625 0 3 1.34375 3 3 v 7 c 0 1.65625 -1.34375 3 -3 3 h -8 c -1.65625 0 -3 -1.34375 -3 -3 v -7 c 0 -1.65625 1.34375 -3 3 -3 z m 0 0" fill="#241f31"/>
+    </g>
+</svg>

BIN
assets/icons/apps/org.gnome.Mines.png


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
assets/icons/apps/org.gnome.Mines.svg


BIN
assets/icons/apps/org.gnome.Nautilus.png


+ 253 - 0
assets/icons/apps/org.gnome.Nautilus.svg

@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   viewBox="0 0 128 128"
+   style="display:inline;enable-background:new"
+   version="1.0"
+   id="svg11300"
+   height="128"
+   width="128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient1245">
+      <stop
+         id="stop1241"
+         offset="0"
+         style="stop-color:#9a9996;stop-opacity:1" />
+      <stop
+         id="stop1243"
+         offset="1"
+         style="stop-color:#c0bfbc;stop-opacity:1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1697">
+      <stop
+         style="stop-color:#deddda;stop-opacity:1"
+         offset="0"
+         id="stop1685" />
+      <stop
+         id="stop1687"
+         offset="0.04545455"
+         style="stop-color:#eeeeec;stop-opacity:1" />
+      <stop
+         style="stop-color:#deddda;stop-opacity:1"
+         offset="0.09090909"
+         id="stop1689" />
+      <stop
+         id="stop1691"
+         offset="0.90909094"
+         style="stop-color:#deddda;stop-opacity:1" />
+      <stop
+         style="stop-color:#eeeeec;stop-opacity:1"
+         offset="0.95454544"
+         id="stop1693" />
+      <stop
+         style="stop-color:#c0bfbc;stop-opacity:1"
+         offset="1"
+         id="stop1695" />
+    </linearGradient>
+    <linearGradient
+       gradientUnits="userSpaceOnUse"
+       y2="238"
+       x2="108"
+       y1="238"
+       x1="20"
+       id="linearGradient1049"
+       xlink:href="#linearGradient1697" />
+    <linearGradient
+       y2="238"
+       x2="74"
+       y1="238"
+       x1="50"
+       gradientTransform="translate(2,-22)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1185"
+       xlink:href="#linearGradient1697" />
+    <linearGradient
+       y2="200"
+       x2="65"
+       y1="204"
+       x1="65"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1348"
+       xlink:href="#linearGradient1245" />
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(0,-172)"
+     style="display:inline"
+     id="layer1">
+    <g
+       style="display:inline"
+       id="layer9">
+      <g
+         transform="matrix(0.25,0,0,-0.25,-6,217)"
+         id="g15447-1" />
+      <g
+         id="g1207">
+        <rect
+           ry="8.017911"
+           rx="8.7725897"
+           y="234"
+           x="20"
+           height="58"
+           width="88"
+           id="rect1041"
+           style="opacity:1;vector-effect:none;fill:url(#linearGradient1049);fill-opacity:1;stroke:none;stroke-width:0.01184966px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal" />
+        <rect
+           style="opacity:1;vector-effect:none;fill:#f6f5f4;fill-opacity:1;stroke:none;stroke-width:0.01184966px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal"
+           id="rect15435-6"
+           width="88"
+           height="108"
+           x="20"
+           y="180"
+           rx="8.7725897"
+           ry="8.017911" />
+        <rect
+           ry="4.0021734"
+           rx="4"
+           y="186"
+           x="24"
+           height="98"
+           width="80"
+           id="rect1167"
+           style="display:inline;opacity:1;vector-effect:none;fill:#1a5fb4;fill-opacity:1;stroke:none;stroke-width:0.0119126px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+        <rect
+           style="display:inline;opacity:1;vector-effect:none;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:0.0119126px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+           id="rect15441-8"
+           width="80"
+           height="98"
+           x="24"
+           y="184"
+           rx="4"
+           ry="4.0021734" />
+        <rect
+           style="display:inline;opacity:1;vector-effect:none;fill:#1c71d8;fill-opacity:1;stroke:none;stroke-width:0.01190936px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+           id="rect15443-6"
+           width="80"
+           height="2"
+           x="24"
+           y="216"
+           rx="0"
+           ry="0" />
+        <rect
+           style="display:inline;opacity:1;vector-effect:none;fill:#1c71d8;fill-opacity:1;stroke:none;stroke-width:0.01190936px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+           id="rect15461-2"
+           width="80"
+           height="2"
+           x="24"
+           y="248"
+           rx="0"
+           ry="0" />
+        <g
+           id="g1088">
+          <path
+             id="path26035"
+             d="m 55,196 h 18 c 1.662,0 3,1 3,3 v 5 H 72.03125 L 72,200 H 56 l 0.03125,4 H 52 v -5 c 0,-1.662 1.338,-3 3,-3 z"
+             style="opacity:1;vector-effect:none;fill:url(#linearGradient1185);fill-opacity:1;stroke:none;stroke-width:0.01184966px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal" />
+          <rect
+             style="opacity:0.1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1059"
+             width="24"
+             height="4"
+             x="52"
+             y="202"
+             ry="1.5" />
+          <path
+             style="opacity:1;fill:url(#linearGradient1348);fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             d="m 55,200 c -1.662,0 -3,1.338 -3,3 v 1 h 4 v -2 h 16 v 2 h 4 v -1 c 0,-1.662 -1.338,-3 -3,-3 z"
+             id="rect1061" />
+          <rect
+             y="202"
+             x="56"
+             height="2"
+             width="16"
+             id="rect1189"
+             style="opacity:0.1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        </g>
+        <use
+           x="0"
+           y="0"
+           xlink:href="#g1088"
+           id="use1090"
+           transform="translate(0,32)"
+           width="100%"
+           height="100%" />
+        <use
+           height="100%"
+           width="100%"
+           transform="translate(0,64)"
+           id="use1092"
+           xlink:href="#g1088"
+           y="0"
+           x="0" />
+      </g>
+    </g>
+  </g>
+</svg>

BIN
assets/icons/apps/org.gnome.Settings.png


+ 45 - 0
assets/icons/apps/org.gnome.Settings.svg

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="64" x2="64" y1="262.5" y2="232">
+        <stop offset="0" stop-color="#9a9996"/>
+        <stop offset="1" stop-color="#77767b"/>
+    </linearGradient>
+    <radialGradient id="b" cx="-243.066583" cy="-74.599978" gradientUnits="userSpaceOnUse" r="28.266656">
+        <stop offset="0" stop-color="#d5d3cf"/>
+        <stop offset="1" stop-color="#949390"/>
+    </radialGradient>
+    <linearGradient id="c" gradientUnits="userSpaceOnUse" x1="203.999985" x2="267.999985" y1="-64" y2="-64">
+        <stop offset="0" stop-color="#d5d3cf"/>
+        <stop offset="1" stop-color="#f6f5f4"/>
+    </linearGradient>
+    <g stroke-width="8">
+        <path d="m 67 122 h -6 l -2 -16 h 10 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round"/>
+        <path d="m 61 10 h 6 l 2 16 h -10 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round"/>
+        <path d="m 667.000092 291.999908 h -6 l -2 -16 h 10 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0 1 -1 0 299.999908 -598.000092)"/>
+        <path d="m 661.000092 179.999908 h 6 l 2 16 h -10 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0 1 -1 0 299.999908 -598.000092)"/>
+        <path d="m 666.999051 291.998922 l -5.999272 -0.00042 l -2.001544 -15.998026 l 9.999915 0.000049 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.5 0.866025 -0.866025 -0.5 600.381916 -391.041005)"/>
+        <path d="m 661.001107 180.000804 l 5.999273 0.000419 l 2.001544 15.998026 l -10.003298 0.001905 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.5 0.866025 -0.866025 -0.5 600.381916 -391.041005)"/>
+        <path d="m 667.000347 291.998468 l -5.999273 0.00042 l -2.002482 -16.00035 l 10.003298 0.001905 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.866025 0.5 -0.5 -0.866025 757.040822 -61.618176)"/>
+        <path d="m 660.999745 180.00119 l 5.999273 -0.00042 l 2.002481 16.00035 l -10.003298 -0.001904 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.866025 0.5 -0.5 -0.866025 757.040822 -61.618176)"/>
+        <path d="m 666.999018 291.999047 l -5.999273 -0.00042 l -2.001544 -15.998026 l 10.003298 -0.001904 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.866025 0.5 -0.5 0.866025 -393.040914 -470.382008)"/>
+        <path d="m 661.001074 180.000929 l 5.999273 0.00042 l 2.001543 15.998025 l -10.003298 0.001905 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.866025 0.5 -0.5 0.866025 -393.040914 -470.382008)"/>
+        <path d="m 667.00038 291.998593 l -5.999273 0.00042 l -2.002481 -16.00035 l 10.003298 0.001905 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.5 0.866025 -0.866025 0.5 -63.618084 -627.040914)"/>
+        <path d="m 660.999779 180.001315 l 5.999272 -0.00042 l 1.999099 15.998397 l -9.999915 0.000049 z m 0 0" fill="#9a9996" stroke="#9a9996" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.5 0.866025 -0.866025 0.5 -63.618084 -627.040914)"/>
+        <path d="m 67 120 h -6 l -2 -16 h 10 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round"/>
+        <path d="m 61 8 h 6 l 2 16 h -10 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round"/>
+        <path d="m 667.000092 291.999908 h -6 l -2 -16 h 10 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0 1 -1 0 299.999908 -600.000092)"/>
+        <path d="m 661.000092 179.999908 h 6 l 2 16 h -10 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0 1 -1 0 299.999908 -600.000092)"/>
+        <path d="m 666.999051 291.998922 l -5.999272 -0.00042 l -2.001544 -15.998026 l 9.999915 0.000049 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.5 0.866025 -0.866025 -0.5 600.381916 -393.041005)"/>
+        <path d="m 661.001107 180.000804 l 5.999273 0.000419 l 2.001544 15.998026 l -10.003298 0.001905 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.5 0.866025 -0.866025 -0.5 600.381916 -393.041005)"/>
+        <path d="m 667.000347 291.998468 l -5.999273 0.00042 l -2.002482 -16.00035 l 10.003298 0.001905 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.866025 0.5 -0.5 -0.866025 757.040822 -63.618176)"/>
+        <path d="m 660.999745 180.00119 l 5.999273 -0.00042 l 2.002481 16.00035 l -10.003298 -0.001904 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-0.866025 0.5 -0.5 -0.866025 757.040822 -63.618176)"/>
+        <path d="m 666.999018 291.999047 l -5.999273 -0.00042 l -2.001544 -15.998026 l 10.003298 -0.001904 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.866025 0.5 -0.5 0.866025 -393.040914 -472.382008)"/>
+        <path d="m 661.001074 180.000929 l 5.999273 0.00042 l 2.001543 15.998025 l -10.003298 0.001905 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.866025 0.5 -0.5 0.866025 -393.040914 -472.382008)"/>
+        <path d="m 667.00038 291.998593 l -5.999273 0.00042 l -2.002481 -16.00035 l 10.003298 0.001905 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.5 0.866025 -0.866025 0.5 -63.618084 -629.040914)"/>
+        <path d="m 660.999779 180.001315 l 5.999272 -0.00042 l 1.999099 15.998397 l -9.999915 0.000049 z m 0 0" fill="#f6f5f4" stroke="#f6f5f4" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0.5 0.866025 -0.866025 0.5 -63.618084 -629.040914)"/>
+    </g>
+    <path d="m 100 238 c 0 19.882812 -16.117188 36 -36 36 s -36 -16.117188 -36 -36 s 16.117188 -36 36 -36 s 36 16.117188 36 36 z m 0 0" fill="none" stroke="url(#a)" stroke-width="24" transform="matrix(1 0 0 1 0 -172)"/>
+    <path d="m 102 64 c 0 20.988281 -17.011719 38 -38 38 s -38 -17.011719 -38 -38 s 17.011719 -38 38 -38 s 38 17.011719 38 38 z m 0 0" fill="none" stroke="#f6f5f4" stroke-width="20"/>
+    <path d="m -209.5 -64 c 0 14.636719 -11.863281 26.5 -26.5 26.5 s -26.5 -11.863281 -26.5 -26.5 s 11.863281 -26.5 26.5 -26.5 s 26.5 11.863281 26.5 26.5 z m 0 0" fill="none" stroke="url(#b)" stroke-linecap="square" stroke-linejoin="round" stroke-width="5" transform="matrix(0 -1 -1 0 0 -172)"/>
+    <path d="m 268 -64 c 0 17.671875 -14.328125 32 -32 32 s -32 -14.328125 -32 -32 s 14.328125 -32 32 -32 s 32 14.328125 32 32 z m 0 0" fill="none" stroke="url(#c)" stroke-linecap="square" stroke-linejoin="round" stroke-width="8" transform="matrix(0 1 -1 0 0 -172)"/>
+</svg>

BIN
assets/icons/apps/org.gnome.SystemMonitor.png


+ 290 - 0
assets/icons/apps/org.gnome.SystemMonitor.svg

@@ -0,0 +1,290 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   width="128"
+   height="128"
+   id="svg11300"
+   version="1.0"
+   style="display:inline;enable-background:new"
+   viewBox="0 0 128 128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient1076">
+      <stop
+         style="stop-color:#d5d3cf;stop-opacity:1"
+         offset="0"
+         id="stop1064" />
+      <stop
+         id="stop1066"
+         offset="0.03571428"
+         style="stop-color:#e4e1de;stop-opacity:1" />
+      <stop
+         style="stop-color:#d5d3cf;stop-opacity:1"
+         offset="0.07142857"
+         id="stop1068" />
+      <stop
+         id="stop1070"
+         offset="0.9285714"
+         style="stop-color:#d5d3cf;stop-opacity:1" />
+      <stop
+         style="stop-color:#e4e1de;stop-opacity:1"
+         offset="0.96428573"
+         id="stop1072" />
+      <stop
+         style="stop-color:#d5d3cf;stop-opacity:1"
+         offset="1"
+         id="stop1074" />
+    </linearGradient>
+    <linearGradient
+       xlink:href="#linearGradient1076"
+       id="linearGradient1444-2-3-2"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.25,0,0,0.25,-22,109.00903)"
+       x1="120"
+       y1="619.96387"
+       x2="568"
+       y2="619.96387" />
+    <linearGradient
+       xlink:href="#linearGradient985"
+       id="linearGradient1106-8"
+       x1="335.86829"
+       y1="33.559235"
+       x2="112.13174"
+       y2="33.559235"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.25,0,0,0.25,-12,225)" />
+    <linearGradient
+       id="linearGradient985">
+      <stop
+         id="stop981"
+         offset="0"
+         style="stop-color:#f9f06b;stop-opacity:1" />
+      <stop
+         id="stop983"
+         offset="1"
+         style="stop-color:#f9f06b;stop-opacity:0" />
+    </linearGradient>
+    <radialGradient
+       xlink:href="#linearGradient1020"
+       id="radialGradient1030"
+       cx="64.846146"
+       cy="194.19048"
+       fx="64.846146"
+       fy="194.19048"
+       r="44"
+       gradientTransform="matrix(-4.7272726,1.1058296e-6,-3.0301491e-7,-1.2272727,250.54547,-21.6754)"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       id="linearGradient1020">
+      <stop
+         style="stop-color:#ffffff;stop-opacity:1;"
+         offset="0"
+         id="stop1016" />
+      <stop
+         style="stop-color:#ffffff;stop-opacity:0.09411765"
+         offset="1"
+         id="stop1018" />
+    </linearGradient>
+    <linearGradient
+       y2="619.96387"
+       x2="568"
+       y1="619.96387"
+       x1="120"
+       gradientTransform="matrix(0.25,0,0,0.25,-22.00001,-50.99097)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1444-2-3-3"
+       xlink:href="#linearGradient1076" />
+    <radialGradient
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(-4.1363634,1.2532736e-6,-2.6513804e-7,-1.3909091,319.22728,170.63455)"
+       r="44"
+       fy="194.19048"
+       fx="63.999996"
+       cy="194.19048"
+       cx="63.999996"
+       id="radialGradient1030-8"
+       xlink:href="#linearGradient1020" />
+    <linearGradient
+       gradientTransform="matrix(0.25,0,0,0.25,-2.00001,61)"
+       gradientUnits="userSpaceOnUse"
+       y2="33.559235"
+       x2="104"
+       y1="33.559235"
+       x1="301"
+       id="linearGradient1106-2"
+       xlink:href="#linearGradient985" />
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <rect
+     style="display:inline;opacity:1;vector-effect:none;fill:#f6f5f4;fill-opacity:1;stroke:none;stroke-width:0.01129821px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+     id="rect929-36-9-9"
+     width="112"
+     height="86"
+     x="8"
+     y="28"
+     rx="7.9999995"
+     ry="7.999999" />
+  <rect
+     rx="3.9999998"
+     style="display:inline;opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.01129821px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+     id="rect946-0-7-4"
+     width="92"
+     height="76"
+     x="12"
+     y="32"
+     ry="4" />
+  <path
+     style="display:inline;opacity:1;vector-effect:none;fill:url(#linearGradient1444-2-3-3);fill-opacity:1;stroke:none;stroke-width:0.01129821px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+     d="m 7.99999,104 v 4 c 0,4.432 3.568,8 8,8 h 96 c 4.432,0 8,-3.568 8,-8 v -4 c 0,4.432 -3.568,8 -8,8 h -96 c -4.432,0 -8,-3.568 -8,-8 z"
+     id="rect929-3-6-3-9" />
+  <rect
+     y="-104"
+     x="16"
+     height="68"
+     width="84"
+     id="rect968-2"
+     style="display:inline;opacity:0.05;vector-effect:none;fill:url(#radialGradient1030-8);fill-opacity:1;stroke:none;stroke-width:0.01121096px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+     transform="scale(1,-1)" />
+  <path
+     id="path1092-6-1-3-7-5-5"
+     style="display:inline;opacity:0.23600003;fill:none;stroke:#e5a50a;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;enable-background:new"
+     d="m 15.99999,74 h 26 l 10,-23 6,39 8,-16 h 34" />
+  <path
+     id="path1092-6-1-3-7-5-1-0"
+     style="display:inline;opacity:1;fill:none;stroke:url(#linearGradient1106-2);stroke-width:4;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;enable-background:new"
+     d="m 15.99999,74 h 26 l 10,-23 6,39 8,-16 h 6" />
+  <g
+     transform="translate(0,-170)"
+     id="g1063">
+    <path
+       style="display:inline;opacity:1;vector-effect:none;fill:#949390;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       d="m 115.99999,232 v 4 c 0,2.20914 -1.79086,4 -4,4 -2.20914,0 -4,-1.79086 -4,-4 v -2 l 4,-2 z"
+       id="path1066" />
+    <path
+       id="path1074"
+       d="m 115.99999,248 v 6 h -4 c -2.216,0 -4,-1.784 -4,-4 v -2 z"
+       style="display:inline;opacity:1;vector-effect:none;fill:#949390;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+    <path
+       id="path1076"
+       d="m 115.99999,252 v -4 a 4,3.9999998 0 0 0 -4,-4 4,3.9999998 0 0 0 -4,4 4,3.9999998 0 0 0 4,4 z"
+       style="display:inline;opacity:1;vector-effect:none;fill:#d5d3cf;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+    <ellipse
+       ry="1.0000002"
+       rx="1"
+       cy="250"
+       cx="-113.99997"
+       id="ellipse1078"
+       style="display:inline;opacity:1;vector-effect:none;fill:#68676b;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       transform="scale(-1,1)" />
+    <path
+       style="display:inline;opacity:1;vector-effect:none;fill:#d5d3cf;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       d="m 115.99999,230 v 4 a 4,3.9999998 0 0 1 -4,4 4,3.9999998 0 0 1 -4,-4 4,3.9999998 0 0 1 4,-4 z"
+       id="path1080" />
+    <ellipse
+       transform="scale(-1)"
+       style="display:inline;opacity:1;vector-effect:none;fill:#68676b;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       id="ellipse1082"
+       cx="-113.99997"
+       cy="-232"
+       rx="1"
+       ry="1.0000002" />
+    <path
+       id="path1084"
+       d="m 107.99999,218 v 4 c 0,2.20914 1.79086,4 4,4 2.20914,0 4,-1.79086 4,-4 v -2 l -4,-2 z"
+       style="display:inline;opacity:1;vector-effect:none;fill:#949390;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+    <path
+       id="path1086"
+       d="m 107.99999,216 v 4 a 4,3.9999998 0 0 0 4,4 4,3.9999998 0 0 0 4,-4 4,3.9999998 0 0 0 -4,-4 z"
+       style="display:inline;opacity:1;vector-effect:none;fill:#d5d3cf;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+    <ellipse
+       ry="1.0000002"
+       rx="1"
+       cy="-218"
+       cx="109.99997"
+       id="ellipse1088"
+       style="display:inline;opacity:1;vector-effect:none;fill:#68676b;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       transform="scale(1,-1)" />
+    <path
+       style="display:inline;opacity:1;vector-effect:none;fill:#949390;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       d="m 115.99999,206 v 6 h -4 c -2.216,0 -4,-1.784 -4,-4 v -2 z"
+       id="path1090" />
+    <path
+       style="display:inline;opacity:1;vector-effect:none;fill:#d5d3cf;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       d="m 115.99999,210 v -4 a 4,3.9999998 0 0 0 -4,-4 4,3.9999998 0 0 0 -4,4 4,3.9999998 0 0 0 4,4 z"
+       id="path1092" />
+    <ellipse
+       transform="scale(-1,1)"
+       style="display:inline;opacity:1;vector-effect:none;fill:#68676b;fill-opacity:1;stroke:none;stroke-width:3.99999952;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       id="ellipse1094"
+       cx="-113.99997"
+       cy="208"
+       rx="1"
+       ry="1.0000002" />
+  </g>
+</svg>

BIN
assets/icons/apps/org.gnome.TextEditor.png


+ 57 - 0
assets/icons/apps/org.gnome.TextEditor.svg

@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <linearGradient id="a" gradientTransform="matrix(-1 0 0 -1 135.999985 -173.999998)" gradientUnits="userSpaceOnUse" x1="27.99999" x2="115.999992" y1="-276" y2="-276">
+        <stop offset="0" stop-color="#c0bfbc"/>
+        <stop offset="0.0454545" stop-color="#ffffff"/>
+        <stop offset="0.0909091" stop-color="#deddda"/>
+        <stop offset="0.909091" stop-color="#deddda"/>
+        <stop offset="0.954545" stop-color="#ffffff"/>
+        <stop offset="1" stop-color="#c0bfbc"/>
+    </linearGradient>
+    <clipPath id="b">
+        <path d="m 88 94 h 20 v 20 h -20 z m 0 0"/>
+    </clipPath>
+    <clipPath id="c">
+        <path d="m 108 94 l -20 20 h -5.714844 v -25.714844 h 25.714844 z m 0 0"/>
+    </clipPath>
+    <linearGradient id="d" gradientTransform="matrix(0 0.178571 0.178571 0 84.428574 42.571447)" gradientUnits="userSpaceOnUse" x1="344" x2="340" y1="76" y2="72">
+        <stop offset="0" stop-color="#d5d3cf"/>
+        <stop offset="1" stop-color="#ffffff"/>
+    </linearGradient>
+    <linearGradient id="e" gradientUnits="userSpaceOnUse">
+        <stop offset="0" stop-color="#fc9a91"/>
+        <stop offset="1" stop-color="#cb2b31"/>
+    </linearGradient>
+    <linearGradient id="f" gradientTransform="matrix(0.6 0.6 0.707107 -0.707107 295.740141 128.474214)" x1="-253.630356" x2="-230.060135" xlink:href="#e" y1="-56.517502" y2="-56.517502"/>
+    <linearGradient id="g" gradientTransform="matrix(0.6 0.6 0.707107 -0.707107 294.325928 129.888428)" x1="-253.630356" x2="-230.060135" xlink:href="#e" y1="-56.517502" y2="-56.517502"/>
+    <linearGradient id="h" gradientTransform="matrix(0.390307 -0.130102 0.130102 -0.390307 -2.964383 65.147882)" gradientUnits="userSpaceOnUse" x1="181.677414" x2="143.24614" y1="-139.479385" y2="-101.048103">
+        <stop offset="0" stop-color="#d0bb8e"/>
+        <stop offset="1" stop-color="#ffffff"/>
+    </linearGradient>
+    <linearGradient id="i" gradientTransform="matrix(0.6 0.6 0.707107 -0.707107 294.32593 129.888425)" gradientUnits="userSpaceOnUse" x1="-230.060135" x2="-253.630356" y1="-64.517509" y2="-64.517509">
+        <stop offset="0" stop-color="#c0bfbc"/>
+        <stop offset="0.223152" stop-color="#9a9996"/>
+        <stop offset="0.743841" stop-color="#d6d5d2"/>
+        <stop offset="1" stop-color="#f6f5f4"/>
+    </linearGradient>
+    <path d="m 100 120 h -72 c -4.417969 0 -8 -3.582031 -8 -8 v -14.25 c 0 -4.417969 3.582031 -8 8 -8 h 72 c 4.417969 0 8 3.582031 8 8 v 14.25 c 0 4.417969 -3.582031 8 -8 8 z m 0 0" fill="#1a5fb4"/>
+    <path d="m 100 118 h -72 c -4.417969 0 -8 -3.582031 -8 -8 v -24 c 0 -4.417969 3.582031 -8 8 -8 h 72 c 4.417969 0 8 3.582031 8 8 v 24 c 0 4.417969 -3.582031 8 -8 8 z m 0 0" fill="url(#a)"/>
+    <path d="m 98.875 114 h -69.75 c -5.039062 0 -9.125 -4.085938 -9.125 -9.125 v -87.875 c 0 -5.039062 4.085938 -9.125 9.125 -9.125 h 69.75 c 5.039062 0 9.125 4.085938 9.125 9.125 v 87.875 c 0 5.039062 -4.085938 9.125 -9.125 9.125 z m 0 0" fill="#f6f5f4"/>
+    <g clip-path="url(#b)">
+        <g clip-path="url(#c)">
+            <path d="m 88 102 v 9.714844 c 0 4.417968 3.582031 8 8 8 h 9.714844 c 4.417968 0 8 -3.582032 8 -8 v -9.714844 c 0 -4.417969 -3.582032 -8 -8 -8 h -9.714844 c -4.417969 0 -8 3.582031 -8 8 z m 0 0" fill="url(#d)"/>
+        </g>
+    </g>
+    <path d="m 29.125 9.875 c -5.054688 0 -9.125 4.070312 -9.125 9.125 v 5 h 85.324219 c 0.929687 0 1.828125 -0.140625 2.675781 -0.398438 v -4.601562 c 0 -5.054688 -4.070312 -9.125 -9.125 -9.125 z m 0 0" fill="#1a5fb4"/>
+    <path d="m 29.125 7.875 c -5.054688 0 -9.125 4.070312 -9.125 9.125 v 5 h 85.324219 c 0.929687 0 1.828125 -0.140625 2.675781 -0.398438 v -4.601562 c 0 -5.054688 -4.070312 -9.125 -9.125 -9.125 z m 0 0" fill="#3584e4"/>
+    <path d="m 48 52 v 6 h -20 v -26 h 72 v 20 z m 0 0" fill="#deddda"/>
+    <path d="m 80 76 v 6 h -52 v -18 h 72 v 12 z m 0 0" fill="#deddda"/>
+    <path d="m 42.34375 80.34375 l 11.3125 11.3125 l 59.597656 -59.597656 l -11.3125 -11.3125 z m 0 0" fill="#ff881e"/>
+    <path d="m 50.777344 88.878906 l 4.242187 4.242188 l 59.597657 -59.597656 l -4.242188 -4.242188 z m 0 0" fill="#e66100"/>
+    <path d="m 45.121094 83.222656 l -4.242188 -4.242187 l 59.597656 -59.597657 l 4.242188 4.242188 z m 0 0" fill="#ffb367"/>
+    <path d="m 96.527344 23.332031 l 14.140625 14.140625 l 5.65625 -5.65625 l -14.140625 -14.140625 z m 0 0" fill="url(#f)"/>
+    <path d="m 116.324219 31.816406 c 3.90625 -3.90625 3.90625 -10.238281 0 -14.140625 c -3.902344 -3.90625 -10.234375 -3.90625 -14.140625 0 c -3.90625 3.902344 -3.90625 10.234375 0 14.140625 s 10.238281 3.90625 14.140625 0 z m 0 0" fill="url(#g)"/>
+    <path d="m 38 96 l 17.070312 -2.929688 l -14.140624 -14.140624 z m 0 0" fill="url(#h)"/>
+    <path d="m 38 96 l 7.414062 -1.273438 l -6.140624 -6.140624 z m 0 0" fill="#3d3846"/>
+    <path d="m 93.699219 26.160156 l 14.140625 14.140625 l 5.65625 -5.65625 l -14.140625 -14.140625 z m 0 0" fill="url(#i)"/>
+</svg>

BIN
assets/icons/apps/org.gnome.clocks.png


+ 170 - 0
assets/icons/apps/org.gnome.clocks.svg

@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   viewBox="0 0 128 128"
+   style="display:inline;enable-background:new"
+   version="1.0"
+   id="svg11300"
+   height="128"
+   width="128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient950">
+      <stop
+         style="stop-color:#9a9996;stop-opacity:1"
+         offset="0"
+         id="stop946" />
+      <stop
+         style="stop-color:#77767b;stop-opacity:1"
+         offset="1"
+         id="stop948" />
+    </linearGradient>
+    <linearGradient
+       y2="812.88245"
+       x2="1662.9901"
+       y1="806.29718"
+       x1="1660.8571"
+       gradientTransform="matrix(1.8293937,-0.81599442,0.81599442,1.8293937,-3645.9624,100.02949)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1001"
+       xlink:href="#linearGradient950" />
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(0,-172)"
+     style="display:inline"
+     id="layer1">
+    <g
+       style="display:inline"
+       id="layer9">
+      <path
+         id="path945"
+         d="M 123.99993,237 A 59.999995,59.999995 0 0 1 63.999945,297 59.999995,59.999995 0 0 1 3.9999381,237 59.999995,59.999995 0 0 1 63.999945,177.00001 59.999995,59.999995 0 0 1 123.99993,237 Z"
+         style="display:inline;opacity:1;fill:#deddda;fill-opacity:1;stroke:none;stroke-width:0.01129822px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+      <rect
+         style="display:inline;opacity:1;fill:#d5d3cf;fill-opacity:1;stroke:none;stroke-width:0.01129822px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+         id="rect978"
+         width="112"
+         height="114"
+         x="8"
+         y="179"
+         rx="56"
+         ry="56" />
+      <path
+         style="display:inline;opacity:1;fill:#f6f5f4;fill-opacity:1;stroke:none;stroke-width:0.01129822px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+         d="M 123.99993,235 A 59.999995,59.999995 0 0 1 63.999945,294.99999 59.999995,59.999995 0 0 1 3.9999381,235 59.999995,59.999995 0 0 1 63.999945,175 59.999995,59.999995 0 0 1 123.99993,235 Z"
+         id="path981" />
+      <circle
+         r="54"
+         style="display:inline;opacity:1;fill:#3d3846;fill-opacity:1;stroke:none;stroke-width:0.01129822px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+         id="circle983"
+         cx="63.999943"
+         cy="235" />
+      <path
+         id="path928"
+         d="m 90.034858,207.99195 a 1.0016649,1.0016649 0 0 0 -0.77686,0.33008 L 67.283393,231.98707 A 5.9999995,5.9999995 0 0 0 61.70136,231.46461 L 47.480658,215.66382 a 2.0033298,2.0033298 0 0 0 -1.603515,-0.68212 2.0033298,2.0033298 0 0 0 -1.374025,3.36181 l 14.21924,15.79932 a 5.9999995,5.9999995 0 0 0 -0.209963,5.30517 5.9999995,5.9999995 0 0 0 2.404298,2.69922 l -11.8584,30.49366 a 1.0016649,1.0016649 0 1 0 1.86719,0.72558 l 11.85742,-30.49121 a 5.9999995,5.9999995 0 0 0 3.65332,-0.39209 5.9999995,5.9999995 0 0 0 3.035157,-7.92383 5.9999995,5.9999995 0 0 0 -0.725097,-1.2041 l 21.979495,-23.66992 a 1.0016649,1.0016649 0 0 0 -0.69092,-1.69336 z"
+         style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.2;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:4.00625896;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:new" />
+      <path
+         style="display:inline;fill:#c0bfbc;fill-rule:evenodd;stroke:url(#linearGradient1001);stroke-width:4.00625896;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1;enable-background:new"
+         d="m 64.000045,235 -18,-20"
+         id="path987" />
+      <path
+         id="path989"
+         d="M 64.000045,235 90.000048,207"
+         style="display:inline;fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:2.00312948;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1;enable-background:new" />
+      <path
+         style="display:inline;fill:none;fill-rule:evenodd;stroke:#ed333b;stroke-width:2.00312948;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1;enable-background:new"
+         d="m 64.000045,235 -14,36"
+         id="path991" />
+      <circle
+         r="5.9999995"
+         cy="240.68896"
+         cx="-37.280369"
+         id="circle993"
+         style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#d5d3cf;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:7.77220678;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
+         transform="rotate(-24.039088)" />
+      <circle
+         r="2.0031295"
+         style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#131c1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8.01251698;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
+         id="circle995"
+         cx="64.029114"
+         cy="235" />
+      <circle
+         r="2"
+         cy="235"
+         cx="64.029114"
+         id="circle997"
+         style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#131c1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8.01251698;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
+      <path
+         id="circle1003"
+         d="m 64.000045,181 a 54,54 0 0 0 -54,54 54,54 0 0 0 0.0415,1.1709 A 54,54 0 0 1 64.000045,183 54,54 0 0 1 117.95854,235.82813 54,54 0 0 0 118.00004,235 54,54 0 0 0 64.000035,181 Z"
+         style="display:inline;opacity:0.1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.01129822px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+    </g>
+  </g>
+</svg>

BIN
assets/icons/apps/org.gnome.design.Palette.png


+ 387 - 0
assets/icons/apps/org.gnome.design.Palette.svg

@@ -0,0 +1,387 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   enable-background="new"
+   viewBox="0 0 128 128"
+   style="display:inline;enable-background:new"
+   version="1.0"
+   id="svg11300"
+   height="128"
+   width="128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient1698">
+      <stop
+         style="stop-color:#9a9996;stop-opacity:1"
+         offset="0"
+         id="stop1694" />
+      <stop
+         id="stop1700"
+         offset="0.5"
+         style="stop-color:#deddda;stop-opacity:1" />
+      <stop
+         style="stop-color:#9a9996;stop-opacity:1"
+         offset="1"
+         id="stop1696" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient1684">
+      <stop
+         id="stop1680"
+         offset="0"
+         style="stop-color:#f6f5f4;stop-opacity:1" />
+      <stop
+         id="stop1682"
+         offset="1"
+         style="stop-color:#949390;stop-opacity:1" />
+    </linearGradient>
+    <radialGradient
+       r="4"
+       fy="267"
+       fx="32"
+       cy="267"
+       cx="32"
+       gradientTransform="translate(0,-7)"
+       gradientUnits="userSpaceOnUse"
+       id="radialGradient1678"
+       xlink:href="#linearGradient1684" />
+    <linearGradient
+       gradientUnits="userSpaceOnUse"
+       y2="232"
+       x2="52"
+       y1="232"
+       x1="12"
+       id="linearGradient1692"
+       xlink:href="#linearGradient1698" />
+    <linearGradient
+       y2="226.64467"
+       x2="24.928932"
+       y1="254.92894"
+       x1="-3.3553388"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1710"
+       xlink:href="#linearGradient1698" />
+    <linearGradient
+       gradientUnits="userSpaceOnUse"
+       y2="242"
+       x2="12"
+       y1="282"
+       x1="12"
+       id="linearGradient1718"
+       xlink:href="#linearGradient1698" />
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(0,-172)"
+     style="display:inline"
+     id="layer1">
+    <g
+       style="display:inline"
+       id="layer9">
+      <g
+         id="g1038"
+         style="display:inline;fill:#dc8add;enable-background:new"
+         transform="rotate(90,-49.75,357.25)">
+        <g
+           id="g1036"
+           style="fill:#ffffff">
+          <circle
+             style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="circle1030"
+             cx="31"
+             cy="269"
+             r="19" />
+          <rect
+             style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1032"
+             width="38"
+             height="69.999977"
+             x="12"
+             y="200" />
+          <rect
+             ry="7.9999995"
+             rx="8"
+             y="180"
+             x="12"
+             height="48"
+             width="38"
+             id="rect1034"
+             style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        </g>
+      </g>
+      <g
+         transform="translate(7.5,169)"
+         style="display:inline;fill:#dc8add;enable-background:new"
+         id="g997-5">
+        <g
+           style="fill:#ffffff"
+           id="g1028-4">
+          <circle
+             r="19"
+             cy="269"
+             cx="31"
+             id="path985-9"
+             style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <rect
+             y="200"
+             x="12"
+             height="69.999977"
+             width="38"
+             id="rect993-1"
+             style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <rect
+             style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1023-9"
+             width="38"
+             height="48"
+             x="12"
+             y="180"
+             rx="8"
+             ry="7.9999995" />
+        </g>
+      </g>
+      <g
+         id="g1674">
+        <g
+           id="g1605"
+           transform="rotate(90,30,264)">
+          <path
+             style="opacity:1;vector-effect:none;fill:url(#linearGradient1718);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             d="m 22,176 c -4.432,0 -8,3.568 -8,8 v 30 l 0,48 c 0,11.04569 8.954305,20 20,20 11.045695,0 20,-8.95431 20,-20 l 0,-70 v -8 c 0,-4.432 -3.568,-8 -8,-8 z"
+             id="path1589" />
+          <g
+             id="g1597">
+            <circle
+               r="20"
+               cy="262"
+               cx="32"
+               id="circle1591"
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+            <rect
+               y="194"
+               x="12"
+               height="68"
+               width="40"
+               id="rect1593"
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.99999976;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+            <rect
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+               id="rect1595"
+               width="40"
+               height="44.000015"
+               x="12"
+               y="175.99998"
+               rx="8"
+               ry="7.9999995" />
+          </g>
+          <rect
+             style="opacity:1;vector-effect:none;fill:#26a269;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1599"
+             width="40"
+             height="16"
+             x="12"
+             y="226" />
+          <rect
+             y="206"
+             x="12"
+             height="16"
+             width="40"
+             id="rect1601"
+             style="opacity:1;vector-effect:none;fill:#33d17a;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <rect
+             style="opacity:1;vector-effect:none;fill:#8ff0a4;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1603"
+             width="40"
+             height="16"
+             x="12"
+             y="186" />
+        </g>
+        <g
+           transform="rotate(45,29.585787,263)"
+           id="g1623">
+          <path
+             id="path1607"
+             d="m 21.414214,179.41422 c -4.432,0 -8,3.568 -8,8 v 28 48 a 20,20 0 0 0 20,20 20,20 0 0 0 20,-20 v -68 -8 c 0,-4.432 -3.568,-8 -8,-8 z"
+             style="opacity:1;vector-effect:none;fill:url(#linearGradient1710);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <g
+             id="g1615">
+            <circle
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+               id="circle1609"
+               cx="32"
+               cy="262"
+               r="20" />
+            <rect
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.99999976;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+               id="rect1611"
+               width="40"
+               height="68"
+               x="12"
+               y="194" />
+            <rect
+               ry="7.9999995"
+               rx="8"
+               y="177.99998"
+               x="12"
+               height="44.000015"
+               width="40"
+               id="rect1613"
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          </g>
+          <rect
+             y="228"
+             x="12"
+             height="16"
+             width="40"
+             id="rect1617"
+             style="opacity:1;vector-effect:none;fill:#a51d2d;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <rect
+             style="opacity:1;vector-effect:none;fill:#e01b24;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1619"
+             width="40"
+             height="16"
+             x="12"
+             y="208" />
+          <rect
+             y="188"
+             x="12"
+             height="16"
+             width="40"
+             id="rect1621"
+             style="opacity:1;vector-effect:none;fill:#f66151;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        </g>
+        <g
+           id="g1587">
+          <path
+             id="circle1567"
+             d="m 20,180 c -4.432,0 -8,3.568 -8,8 v 28 48 a 20,20 0 0 0 20,20 20,20 0 0 0 20,-20 v -68 -8 c 0,-4.432 -3.568,-8 -8,-8 z"
+             style="opacity:1;vector-effect:none;fill:url(#linearGradient1692);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <g
+             id="g1565">
+            <circle
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+               id="path985"
+               cx="32"
+               cy="262"
+               r="20" />
+            <rect
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.99999976;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+               id="rect993"
+               width="40"
+               height="68"
+               x="12"
+               y="194" />
+            <rect
+               ry="7.9999995"
+               rx="8"
+               y="177.99998"
+               x="12"
+               height="44.000015"
+               width="40"
+               id="rect1023"
+               style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          </g>
+          <rect
+             y="228"
+             x="12"
+             height="16"
+             width="40"
+             id="rect1105"
+             style="opacity:1;vector-effect:none;fill:#1a5fb4;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+          <rect
+             style="opacity:1;vector-effect:none;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1109"
+             width="40"
+             height="16"
+             x="12"
+             y="208" />
+          <rect
+             y="188"
+             x="12"
+             height="16"
+             width="40"
+             id="rect1111"
+             style="opacity:1;vector-effect:none;fill:#98c1f1;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        </g>
+        <circle
+           r="4"
+           cy="262"
+           cx="32"
+           id="circle1092"
+           style="opacity:1;vector-effect:none;fill:#5e5c64;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        <circle
+           style="opacity:1;vector-effect:none;fill:url(#radialGradient1678);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+           id="circle1676"
+           cx="32"
+           cy="261"
+           r="4" />
+      </g>
+    </g>
+  </g>
+</svg>

BIN
assets/icons/apps/org.gnome.tweaks.png


+ 249 - 0
assets/icons/apps/org.gnome.tweaks.svg

@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   viewBox="0 0 128 128"
+   style="display:inline;enable-background:new"
+   version="1.0"
+   id="svg11300"
+   height="128"
+   width="128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient974">
+      <stop
+         style="stop-color:#babdb6;stop-opacity:1"
+         offset="0"
+         id="stop962" />
+      <stop
+         id="stop964"
+         offset="0.04166667"
+         style="stop-color:#f6f5f4;stop-opacity:1" />
+      <stop
+         style="stop-color:#d5d3cf;stop-opacity:1"
+         offset="0.08333334"
+         id="stop966" />
+      <stop
+         id="stop968"
+         offset="0.91666669"
+         style="stop-color:#deddda;stop-opacity:1" />
+      <stop
+         style="stop-color:#f6f5f4;stop-opacity:1"
+         offset="0.95833331"
+         id="stop970" />
+      <stop
+         style="stop-color:#babdb6;stop-opacity:1"
+         offset="1"
+         id="stop972" />
+    </linearGradient>
+    <linearGradient
+       y2="44"
+       x2="464"
+       y1="44"
+       x1="48"
+       gradientTransform="matrix(0.25,0,0,0.25,-110,225)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1747"
+       xlink:href="#linearGradient974" />
+    <clipPath
+       id="clipPath1784"
+       clipPathUnits="userSpaceOnUse">
+      <rect
+         ry="14"
+         rx="14"
+         y="202"
+         x="36"
+         height="28"
+         width="59.999996"
+         id="rect1786"
+         style="opacity:1;vector-effect:none;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:0.85391253;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+    </clipPath>
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(0,-172)"
+     style="display:inline"
+     id="layer1">
+    <g
+       style="display:inline"
+       id="layer9">
+      <g
+         transform="translate(110)"
+         id="g1769">
+        <rect
+           ry="8"
+           rx="8"
+           y="204"
+           x="-98"
+           height="83.999992"
+           width="104"
+           id="rect1709"
+           style="display:inline;opacity:1;fill:url(#linearGradient1747);fill-opacity:1;stroke:none;stroke-width:0.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
+        <rect
+           style="display:inline;opacity:1;fill:#f6f5f4;fill-opacity:1;stroke:none;stroke-width:0.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+           id="rect1711"
+           width="104"
+           height="100"
+           x="-98"
+           y="184"
+           rx="8"
+           ry="8" />
+      </g>
+      <g
+         transform="translate(0,-2)"
+         id="g1802">
+        <path
+           style="opacity:1;vector-effect:none;fill:#1a5fb4;fill-opacity:1;stroke:none;stroke-width:0.85391253;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+           d="m 48,28 c -7.756,0 -14,6.244 -14,14 0,0.337684 0.0275,0.668439 0.05078,1 C 34.562237,35.716191 40.581684,30 48,30 h 32 c 7.418316,0 13.437763,5.716191 13.949219,13 C 93.9725,42.668439 94,42.337684 94,42 94,34.244 87.756,28 80,28 Z"
+           transform="translate(0,172)"
+           id="rect1790" />
+        <rect
+           ry="14"
+           rx="14"
+           y="202"
+           x="-94"
+           height="28"
+           width="59.999996"
+           id="rect1143"
+           style="opacity:1;vector-effect:none;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:0.85391253;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+           transform="scale(-1,1)" />
+        <g
+           id="g1151"
+           transform="matrix(-1,0,0,1,130,-4)">
+          <circle
+             transform="translate(0,4)"
+             r="14"
+             cy="218"
+             cx="50"
+             id="circle1147"
+             style="opacity:1;vector-effect:none;fill:#deddda;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             clip-path="url(#clipPath1784)" />
+          <rect
+             style="opacity:1;vector-effect:none;fill:#deddda;fill-opacity:1;stroke:none;stroke-width:0.88191712;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="rect1149"
+             width="28"
+             height="5.9999995"
+             x="36"
+             y="216" />
+        </g>
+        <circle
+           r="14"
+           cy="212"
+           cx="-80"
+           id="circle1153"
+           style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.77777779;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+           transform="scale(-1,1)" />
+      </g>
+      <g
+         transform="matrix(-1,0,0,1,128,38)"
+         id="g1818">
+        <path
+           transform="translate(0,172)"
+           id="path1804"
+           d="m 48,28 c -7.756,0 -14,6.244 -14,14 0,0.337684 0.0275,0.668439 0.05078,1 C 34.562237,35.716191 40.581684,30 48,30 h 32 c 7.418316,0 13.437763,5.716191 13.949219,13 C 93.9725,42.668439 94,42.337684 94,42 94,34.244 87.756,28 80,28 Z"
+           style="opacity:1;vector-effect:none;fill:#9a9996;fill-opacity:1;stroke:none;stroke-width:0.85391253;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        <rect
+           ry="14"
+           rx="14"
+           y="202"
+           x="-94"
+           height="28"
+           width="59.999996"
+           id="rect1808"
+           style="opacity:1;vector-effect:none;fill:#c0bfbc;fill-opacity:1;stroke:none;stroke-width:0.85391253;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+           transform="scale(-1,1)" />
+        <g
+           transform="matrix(-1,0,0,1,130,-4)"
+           id="g1814">
+          <circle
+             clip-path="url(#clipPath1784)"
+             style="opacity:1;vector-effect:none;fill:#deddda;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+             id="circle1810"
+             cx="50"
+             cy="218"
+             r="14"
+             transform="translate(0,4)" />
+          <rect
+             y="216"
+             x="36"
+             height="5.9999995"
+             width="28"
+             id="rect1812"
+             style="opacity:1;vector-effect:none;fill:#deddda;fill-opacity:1;stroke:none;stroke-width:0.88191712;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        </g>
+        <circle
+           transform="scale(-1,1)"
+           style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.77777779;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+           id="circle1816"
+           cx="-80"
+           cy="212"
+           r="14" />
+      </g>
+    </g>
+  </g>
+</svg>

+ 16 - 0
assets/icons/apps/render_appicons.sh

@@ -0,0 +1,16 @@
+#!/bin/sh
+# Regenerate the committed 96 px PNGs in this directory from the upstream
+# GNOME app icon SVGs.  This step is only run when an icon source changes;
+# the normal build consumes the PNGs and needs no SVG rasterizer.
+#
+#   assets/icons/apps/render_appicons.sh
+#
+# Requires rsvg-convert.  Keep the SVGs and PNGs in sync and update README
+# with the upstream commit when refreshing an icon.
+set -eu
+cd "$(dirname "$0")"
+for svg in *.svg; do
+	out=${svg%.svg}.png
+	echo "$svg -> $out"
+	rsvg-convert -w 96 -h 96 "$svg" -o "$out"
+done

+ 1 - 1
docs/cpu.html

@@ -399,7 +399,7 @@
 		<ul>
 			<li><strong>Nehalem/Westmere P-states.</strong> <code>power_init</code> enables SpeedStep, raises the package C-state limit to C6 when unlocked, reads min/max ratios from <code>PLATFORM_INFO</code> and starts at the maximum non-turbo ratio. The target ratio goes in bits 15:8 of <code>IA32_PERF_CTL</code> with the low byte zero.</li>
 			<li><strong>Airmont/Braswell P-states.</strong> Family 6 model <code>0x4C</code> reads the Atom ratio/VID MSRs (<code>0x66A..0x66D</code>), <code>MSR_FSB_FREQ</code> and the FSB table. The N3060 reports pstates 6..20, BCLK 80 MHz (1600 MHz nominal), turbo pstate 31 (2480 MHz) and VID 0x2D..0x3C. <code>power_init</code> enters at max non-turbo and the governor drops to pstate 6 (480 MHz); <code>IA32_PERF_CTL</code> carries the pstate in 15:8 and the Linux-interpolated VID in 7:0. Turbo is detected but not requested. The probe deliberately avoids package/power-SKU MSRs; an unsupported <code>rdmsr</code> before the IDT triple-faults.</li>
-			<li><strong>Governor.</strong> A 100 ms window picks min/max/linear target pstates; short busy streaks jump to max immediately. Each CPU writes its own <code>IA32_PERF_CTL</code>; <code>cpufreq [auto|min|max|off|&lt;pstate&gt;]</code> overrides it, and <code>SYS_CPUFREQ</code> exposes the same auto/min/max/off mode to the control panel's Power mode tile.</li>
+			<li><strong>Governor.</strong> A 100 ms window picks min/max/linear target pstates; short busy streaks jump to max immediately. Each CPU writes its own <code>IA32_PERF_CTL</code>; <code>cpufreq [auto|min|max|off|&lt;pstate&gt;]</code> overrides it, and <code>SYS_CPUFREQ</code> exposes the same auto/min/max/off mode to the Settings Power page.</li>
 			<li><strong>Telemetry.</strong> <code>power</code> prints effective MHz from APERF/MPERF, the current/requested pstate and, on Airmont, the FSB, nominal MHz, turbo pstate/VID, VID range and live <code>PERF_CTL</code>; <code>sensors</code> prints the CPU temperature, board sensors and both EC types; <code>powerinfo</code> prints the AC adapter and battery state, and the WM top bar shows the temperature plus a far-right AC plug or level-filled battery icon on ThinkPads and Chromebooks.</li>
 			<li><strong>Thermal.</strong> On Intel, each CPU samples its DTS once a second from its scheduler tick; the hottest core is exposed to ring 3. TjMax comes from <code>IA32_TEMPERATURE_TARGET</code> on Nehalem/Westmere, the coretemp 90 °C table on Airmont, and the Bonnell table on older Atoms. On AMD family 15h models below <code>0x60</code> (Bulldozer/Piledriver/Steamroller), <span class="file">thermal.c</span> reads the package Tctl from <code>D18F3xA4</code> at PCI <code>0:18.3</code> (k10temp's <code>(raw × 125) m°C</code>, with the 49 °C range offset when bits 17:16 are both set) and publishes it to every CPU from the kworker under the BKL; PCI config space is deliberately not touched from the per-CPU timer interrupt.</li>
 			<li><strong>Limits.</strong> Package C-states/S0ix remain firmware-managed; Airmont reports no C3/C6 residency and does not request the turbo pstate. The explicit <code>idle c6</code> override is the Nehalem <code>0x20</code> hint; use <code>idle auto</code> for the Airmont C6N (<code>0x58</code>) path.</li>

+ 2 - 0
docs/development.html

@@ -241,6 +241,7 @@
 					<tr><td><code>make compat-serve</code></td><td>Serve the browser compatibility ladder from <code>testdata/browser/compat/</code> on port 8000 for the board or QEMU guest.</td></tr>
 					<tr><td><code>make browser-host</code></td><td>Build the Linux SDL3 development harness (<code>browser-host</code> and its <code>host-curl</code> helper). It implements the ring-3 <code>SYS_*</code> ABI with host files, BSD sockets, <code>fork/exec</code> and an SDL3 window, so pages render and accept input without QEMU. Run <code>./browser-host [--size WxH] [--root DIR] URL|FILE</code>; <code>--headless --wait 3000 --shot out.ppm</code> writes the canvas without a display, and <code>--keys 'clo{down}{enter}'</code> types into it (one key per 100 ms; <code>{enter}</code>, <code>{esc}</code>, <code>{tab}</code>, <code>{bs}</code>, <code>{del}</code>, arrows, <code>{ctrl-l}</code>, <code>{wait}</code>, <code>{click:X,Y}</code> for a left click at canvas coordinates, <code>{rclick:X,Y}</code> for a right click (context menus), and <code>{move:X,Y}</code> to only move the pointer, for hover). Needs the 32-bit SDL3/Wayland libraries (<code>lib32-sdl3</code>, <code>lib32-wayland</code>, <code>lib32-libxkbcommon</code>).</td></tr>
 					<tr><td><code>make fonts</code></td><td>Regenerate the checked-in Arimo/Liberation Mono subsets with <code>pyftsubset</code>.</td></tr>
+					<tr><td><code>make appicons</code></td><td>Build <code>icons/apps96.icn</code> (<code>NBAPP1</code>) from the committed 96&nbsp;px GNOME app icon PNGs. The PNGs are regenerated from the vendored SVGs with <code>assets/icons/apps/render_appicons.sh</code> (needs <code>rsvg-convert</code>); normal builds do not parse these SVGs.</td></tr>
 				</tbody>
 			</table>
 		</div>
@@ -419,6 +420,7 @@ make net-cmds                   # replace /ramfs only</code></pre>
 		<h2>Source map</h2>
 		<ul class="filelist">
 			<li><code>Makefile</code> — targets and image rules</li>
+			<li><code>include/app_icon_abi.h</code>, <code>tools/mkappicons.c</code>, <code>assets/icons/apps/</code> — full-colour app icon list and the <code>NBAPP1</code> build pipeline (committed PNGs; the SVG-to-PNG step is maintainer-only)</li>
 			<li><code>user/lib/libc/</code>, <code>libc.a</code> — optional ring-3 libc and its host test</li>
 			<li><code>third_party/quickjs/</code> (see its <code>VENDOR</code>), <code>user/apps/browser/js_mu.c/h</code>, <code>user/apps/browser/js_browser.c/h</code> — vendored JavaScript engine, its MuJS-style stack API and the browser bindings; <code>user/apps/browser/js_test.c</code> host tests</li>
 			<li><code>host/</code> — Linux SDL3 browser harness: <code>host/syscall.c</code> implements the <code>SYS_*</code> ABI, <code>host/window_sdl3.c</code> the Wayland window/input, <code>host/fs.c</code>/<code>host/net.c</code>/<code>host/proc.c</code> the host file, socket and <code>curl __serve</code> services, and <code>host/window_headless.c</code> the screenshot mode; <span class="file">ucmd_lib.h</span> selects the host prototypes with <code>UCMD_HOST</code></li>

+ 2 - 2
docs/drivers.html

@@ -681,8 +681,8 @@
 			the full <code>struct sys_datetime</code>; the older
 			<code>SYS_RTC_HMS</code>/<code>SYS_RTC_DATETIME</code> calls remain
 			the small read-only views. The WM’s top-bar date/time opens the
-			control panel, whose Date &amp; Time tile reveals an inline
-			editor; its <em>Sync NTP</em> button fetches UTC through
+			quick-settings popover; its Date &amp; Time pill opens the
+			Settings page, whose <em>Sync NTP</em> button fetches UTC through
 			<code>SYS_NTP_SYNC</code> (106), backed
 			by the SNTP client in <span class="file">ntp.c</span>, and writes
 			it with <code>SYS_RTC_SET</code>. The <code>date</code> command

+ 153 - 36
docs/graphics.html

@@ -61,6 +61,7 @@
 			<li><a href="#apps">Applications</a></li>
 			<li><a href="#images">Image library</a></li>
 			<li><a href="#icons">UI icons</a></li>
+			<li><a href="#appicons">App icons &amp; dock</a></li>
 			<li><a href="#cursors">Mouse cursors</a></li>
 			<li><a href="#gpu">GPU quirks</a></li>
 			<li><a href="#backlight">Panel backlight</a></li>
@@ -152,16 +153,39 @@
 			<code>ac-adapter</code> symbol on AC, and the <code>battery</code>
 			outline with our own level fill inside on battery), plus
 			draggable
-			terminal and canvas windows with a title bar and close button.
-			A normal window has no visible frame; an invisible resize band
-			(1 px inside, 3 px outside its outer edge) is the resize grab
-			area, and the active title bar uses the toolkit's highlight
-			colour. The desktop starts as a flat colour; <code>view</code>'s
-			<em>Background</em> button stores a pre-scaled RGB565 file
-			(<code>/data/WALLPAPR.BIN</code> on an installed board, else
-			<code>/share/wallpaper</code>) and signals the WM through
-			<code>SYS_WM_WALLPAPER</code>, which reloads and stretches it
-			under the windows. The WM has no image decoder of its own.
+			terminal and canvas windows with a title bar and a close
+			icon. A normal window has no visible frame; an invisible
+			resize band (1 px inside, 4 px outside its outer edge, with
+			12 px corner squares) is the resize grab area, and the active
+			title bar uses the toolkit's highlight colour. The title is
+			inset 8 px from the left; the close control is the Adwaita
+			<code>window-close</code> symbol at the right edge with no red
+			button fill, dimmed while idle and brightened on hover, and it
+			shows the hand cursor. Every normal window also casts a 10 px
+			soft drop shadow: <code>usurf_window_shadow()</code> darkens
+			the ring outside the window edge with a rounded distance
+			falloff, so the corners fade in a curve. The shadow, the edge
+			snapping and the drag resistance can be changed in
+			<code>bin/settings</code> (<em>Windows</em>): the WM keeps a
+			<code>struct wm_prefs</code> in <code>wm_status</code>, applied
+			through <code>SYS_WM_PREFS</code> and persisted in
+			<code>/data/SETTINGS.CFG</code> (or the RAM copy
+			<code>/share/settings.cfg</code>).
+			Shadows are painted after the windows, back to front, so a
+			front window's shadow falls on the windows behind it and is
+			clipped by every window in front; popovers stay flat. Geometry
+			damage grows by the shadow spread, while a title-bar drag
+			repaints only the old and new ring strips around the copied
+			window block. The desktop is a configurable flat colour
+			(<code>wm_prefs.bg_rgb</code>, default <code>#202030</code>);
+			<code>view</code>'s <em>Background</em> button or the
+			Settings app's <em>Appearance</em> page stores a pre-scaled
+			RGB565 file (<code>/data/WALLPAPR.BIN</code> on an installed
+			board, else <code>/share/wallpaper</code>) and signals the WM
+			through <code>SYS_WM_WALLPAPER</code>, which reloads and
+			stretches it under the windows. The image wins over the colour
+			while it is installed; removing it in Settings exposes the
+			colour again. The WM has no image decoder of its own.
 			Click-to-focus, drag-by-title-bar and close are routed through the
 			same pointer path. To the left of the rightmost AC/battery status
 			icon, a network status icon shows the Adwaita
@@ -178,23 +202,26 @@
 			bar buttons use the same height and rounded style, stopping just
 			above the rainbow separator, and turn selection-blue while their
 			panel is open. It opens the anchored <code>bin/netmenu</code>
-			control panel (a second click closes it).
-			It opens collapsed: the battery/clock summary and Quick settings
-			pills are visible, while the network, power-mode and date/time
-			settings stay hidden until their pill is clicked.  Present NICs
-			can then be selected (DHCP runs), and scanned WiFi networks can be
-			joined, asking for the WPA2 passphrase first when the AP requires
-			one.
+			quick-settings popover (a second click closes it).
+			The popover holds the battery/clock summary, a brightness slider
+			and six pills: Network, Power, Date &amp; Time, Appearance,
+			Windows and About. Clicking a pill never expands the popover;
+			it calls <code>SYS_WM_OPEN_SETTINGS(section)</code>, the WM
+			opens or focuses the real <code>bin/settings</code> window and
+			writes the requested section to <code>/share/settings.req</code>,
+			and the popover closes. A running Settings window consumes that
+			request and switches panes without restarting.
 		</p>
 		<p>
 			The NebOS banner in the top-left is the start button. Clicking it
 			opens a Windows-like start menu drawn by the WM as a flat overlay,
 			not a window, so it floats above every canvas without consuming a
-			window slot. The panel uses the control panel's theme: a flat
+			window slot. The panel uses the quick-settings popover's theme: a flat
 			<code>theme.bg</code> surface with no rim, a dim
 			<code>Applications</code> caption as its first row, rounded hover
 			rows and a rounded Power tile. Every self-contained GUI
-			application in the pack gets a row with a coloured letter tile —
+			application in the pack gets a row with its full-colour GNOME app
+			icon (the coloured letter tile remains only as a fallback) —
 			Terminal, Files, Web, Gallery, Chat, Clock, Text editor, Colors,
 			Mines, Cards, Disks, Tasks, Services, Settings and Date &amp; Time — the
 			pointer highlights the hovered row, and an outside press dismisses
@@ -205,6 +232,48 @@
 			right-aligned status never draw left of
 			<code>WM_BAR_LEFT_END</code>.
 		</p>
+		<p>
+			A macOS-like dock floats at the bottom centre.  It is a WM-drawn
+			overlay, not a work-area reservation, so maximized windows keep
+			their full height and simply pass underneath it.  The pinned row
+			is Terminal, Files, Web, Chat, Text editor, Gallery, Clock,
+			Colors, Mines, Cards, Disks, Tasks and Settings (after a thin
+			separator); Services and Date &amp; Time stay in the start menu.
+			Icons use a 48&nbsp;px base, shrinking to 24&nbsp;px on narrow
+			screens, and the panel is a translucent rounded surface with a
+			1&nbsp;px rim.  The pointer's horizontal distance to each base
+			slot (fixed slots, so the target does not chase the moving
+			layout) drives a squared falloff over about 2.5 slots and a
+			1.0&ndash;1.75&times; scale in 8.8 fixed point.  The scaled icons
+			are laid out again with their real widths and the row is
+			recentred, so magnified icons push their neighbours aside as the
+			pointer moves; per-frame easing makes the wave follow smoothly.
+			A name pill appears above the hovered icon.
+		</p>
+		<p>
+			Running apps get a small dot under their icon: the WM matches the
+			canvas title (<code>term</code>, <code>Files</code>,
+			<code>Browser</code>, ...), since the canvas ABI carries no
+			executable id.  Clicking a running app focuses its window;
+			otherwise the click goes through the same launcher path as the
+			start menu.  Settings opens or focuses the Settings window.  While the pointer is over an icon, the panel or its
+			label, the WM takes <code>SYS_WM_MOUSE_CAPTURE</code>, so a click
+			or wheel event cannot leak to the window underneath; it releases
+			the capture on leave (or after the button is released).  The dock
+			joins <code>wm_overlays()</code>, and any window damage that
+			intersects its rectangle repaints it, so a window drag or a
+			canvas update cannot leave a hole in it.  When a window is
+			dragged out from under the dock (or the brightness OSD), the WM
+			repaints it from its canvas instead of block-copying the old
+			shadow rectangle, because those pixels belong to the overlay and
+			would otherwise travel with the window.
+		</p>
+		<p>
+			The dock is not auto-hidden and does not support reordering or
+			badges; because it overlays the bottom of the screen, the bottom
+			resize band of a window that reaches the screen edge is not
+			reachable until the window is moved up.
+		</p>
 		<p>
 			A popover is a chromeless canvas window created with
 			<code>u_win_create_popover()</code> (<code>WIN_F_POPOVER</code>).
@@ -218,16 +287,15 @@
 			popover and the click then continues normally; a second click on
 			the status cluster toggles it. The panel itself is drawn with the
 			ngui components: a battery/AC and clock summary, a brightness
-			slider when the panel PWM is present, and Quick settings tiles for
-			Network, the CPU power mode (<code>SYS_CPUFREQ</code>) and Date
-			&amp; Time.  Clicking a tile expands that section in place — the
-			network devices/Wi-Fi/connection lists, the three power modes, or
-			an inline date/time editor with Set, Now and Sync NTP (no separate
-			window).  <code>SYS_WIN_RESIZE_SELF</code> grows or shrinks the
-			popover to the section, clamped to <code>SYS_SCREEN_INFO</code>'s
-			framebuffer; the section scrolls with the wheel, touchpad or page
-			keys when it is taller than the screen, and its overlay scrollbar
-			slides in while the pointer is over the panel.
+			slider when the panel PWM is present, and a 2-column grid of
+			quick-settings tiles for Network, Power, Date &amp; Time,
+			Appearance, Windows and About.  A tile is a launcher, not an
+			inline editor: it asks the WM for that Settings section (see
+			above), so network selection, Wi-Fi join, the clock editor,
+			wallpaper selection and the WM preference toggles all live in
+			the titled <code>bin/settings</code> window.  The popover has no
+			resizing path left; its content is static and the window height
+			is computed once from the presence of the brightness slider.
 		</p>
 		<p>
 			The WM is the ring-3 process loaded from
@@ -357,7 +425,16 @@
 			<code>SYS_WM_RESIZE</code> (WM side) and
 			<code>SYS_WIN_ACK_RESIZE</code> (client side) swap in a resized
 			canvas; the content size is bounded by the framebuffer, so a
-			window can grow to the edge of the screen.
+			window can grow to the edge of the screen. <code>struct
+			wm_size</code> carries the window-origin delta (new minus old) in
+			<code>dx</code>/<code>dy</code>: the kernel copies the old front
+			canvas into the new one anchored by that delta before freeing it,
+			so a left/top edge drag keeps the content in place and only the
+			newly exposed strip starts black until the owner acknowledges and
+			repaints. A live resize commits at most every 30 ms
+			(<code>WM_RESIZE_COMMIT_MS</code>) or after the edge moved 8 px
+			(<code>WM_RESIZE_MIN_STEP</code>), and the button release forces
+			the final geometry.
 		</p>
 		<p>
 			Double-clicking a title bar maximizes the window to the work area
@@ -368,6 +445,10 @@
 			the work area at full height, and the top edge maximizes it. The
 			restore geometry is saved only when a window leaves the normal state,
 			so snapping and then maximizing still restores the original size.
+			The Settings <em>Windows</em> page can turn edge snapping off
+			(<code>wm_prefs.snap</code>); double-click maximize stays
+			available.  Edge resistance (<code>wm_prefs.resist</code>) is a
+			separate toggle.
 			Dragging a maximized or snapped window restores it first, with the
 			grab point kept at the same fraction of the title bar, and a manual
 			resize clears the state. While a window is dragged, the screen edges
@@ -376,8 +457,9 @@
 			which makes side-by-side placement exact. Windows can be dragged past the left, right and
 			bottom edges; <code>WM_DRAG_VISIBLE</code> (48 px) of the title bar
 			always stays on-screen for recovery, and the top bar is never
-			overlapped. An invisible resize band (1 px inside, 3 px outside)
-			runs along every edge and corner: the grabbed edges follow the
+			overlapped. An invisible resize band (1 px inside, 4 px outside)
+			runs along every edge, with 12 px corner squares: the grabbed
+			edges follow the
 			pointer while the opposite edges stay put, clamped to the work
 			area. While a drag or resize is active the WM owns the pointer,
 			so the window content does not see the held button.
@@ -406,7 +488,8 @@
 			Adwaita symbolic icons (see <a href="#icons">UI icons</a>), a theme palette, layout cut helpers and scrolling
 			panes. It is linked into <code>files</code>, <code>mines</code>,
 			<code>solitaire</code>, <code>process</code>, <code>chat</code>,
-			the control panel and the real <code>gallery.elf</code>.
+			<code>settings</code>, <code>netmenu</code> and the real
+			<code>gallery.elf</code>.
 		</p>
 		<ul>
 			<li><strong>Text fields</strong> support drag-selection, double-click select-all, Ctrl+Left/Right word jumps, Ctrl+Delete/Backspace word deletion and Ctrl+A. They use the proportional face with measured caret, selection and horizontal scrolling; a field marked <code>disabled</code> ignores pointer and keyboard input, drops the focus and paints its value dimmed in the same proportional face. A field marked <code>secret</code> is measured and painted from a <code>*</code> mask (caret, selection and click positions follow the mask, Ctrl+Left/Right jump to the ends), and Tab returns <code>NGUI_INPUT_NEXT</code> together with <code>NGUI_INPUT_CANCEL</code> so forms can move the focus. Fields hold up to 511 characters (<code>NGUI_INPUT_MAX</code> 512). The terminal and editor keep the 8×16 cell grid.</li>
@@ -483,9 +566,17 @@
 				<h3>view</h3>
 				<p>Image viewer with fit, 1:1, zoom, pan, EXIF orientation and animated GIF playback. Its <em>Background</em> button (or the <code>b</code> key) installs the image as the desktop wallpaper, persisted in <code>/data/WALLPAPR.BIN</code> when the data volume is mounted.</p>
 			</div>
+			<div class="card">
+				<h3>settings</h3>
+				<p>The real Settings window: a titled canvas window with a left section sidebar and a scrollable right pane. Network (NIC selection, DHCP, Wi-Fi scan/join/saved networks and details), Power (P-state modes, brightness, AC/battery), Date &amp; Time (RTC editor and SNTP), Appearance (desktop colour and an image picker for the wallpaper), Windows (soft shadows, edge snapping and drag resistance through <code>SYS_WM_PREFS</code>) and About (version, display, uptime, memory, CPU temperature). It is reused by the WM; a pill click focuses it and hands over the requested section.</p>
+			</div>
+			<div class="card">
+				<h3>netmenu</h3>
+				<p>The top-bar quick-settings popover: battery/AC and clock summary, a brightness slider and six launcher pills that open the matching Settings section.</p>
+			</div>
 			<div class="card">
 				<h3>clock / colors / settime</h3>
-				<p>Small canvas demos: an analog clock, a colour test window, and the standalone Date &amp; Time editor (<code>settime</code>). The control panel's Date &amp; Time tile reveals its own inline editor, which reads and writes the CMOS RTC and can fetch UTC from an SNTP server.</p>
+				<p>Small canvas demos: an analog clock, a colour test window, and the standalone Date &amp; Time editor (<code>settime</code>). The Settings app's Date &amp; Time page has the same editor, which reads and writes the CMOS RTC and can fetch UTC from an SNTP server.</p>
 			</div>
 			<div class="card">
 				<h3>browser</h3>
@@ -538,6 +629,30 @@
 		</ul>
 	</section>
 
+	<section id="appicons">
+		<h2>App icons &amp; dock</h2>
+		<p>
+			The dock and the start menu use full-colour GNOME application
+			icons instead of the symbolic masks.  The 15 icons are the
+			upstream app SVGs from GNOME GitLab (Console, Nautilus, Epiphany,
+			Fractal, Text Editor, Adwaita Demo, Clocks, Palette, Mines,
+			Aisleriot, Disks, System Monitor, Tweaks, Settings and Calendar),
+			copied unchanged into
+			<span class="file">assets/icons/apps/</span> and rendered once to
+			96&times;96 PNGs.  The SVGs are the licence/source form; the build
+			never parses them, because these icons use gradients, strokes and
+			transforms that the in-tree SVG rasterizer intentionally does not
+			support.  <span class="file">assets/icons/apps/render_appicons.sh</span>
+			is the maintainer-only rsvg-convert step; the committed PNGs are
+			what every normal build consumes.
+		</p>
+		<ul>
+			<li><strong>Bundle.</strong> <span class="file">tools/mkappicons.c</span> decodes the PNGs with the in-tree image library, premultiplies them and writes one <code>NBAPP1</code> bundle, <code>/ramfs/icons/apps96.icn</code> (layout in <span class="file">include/app_icon_abi.h</span>): a 16-byte header then 15 images of 96&times;96 premultiplied RGB565+alpha, ~415&nbsp;KB raw and ~29&nbsp;KB in the gzip pack.  Both the USB and the floppy lite pack carry it.  <code>APP_ICON_LIST</code> is the append-only id and bundle order; its names are the upstream file basenames.</li>
+			<li><strong>Loading and scaling.</strong> <code>uwm_lib.c</code> reads the bundle once into BSS (the WM has no image decoder).  <code>usurf_app_icon()</code> blits one image at any size: exact copy at 96&nbsp;px, 2&times;2/4&times;4 box sampling for the 48&nbsp;px dock and 18&nbsp;px menu icons, bilinear for the magnified in-between sizes.  Premultiplied source-over avoids dark fringes on the transparent edges.  The same function serves the start-menu rows and the dock; without the bundle both fall back to the coloured letter tiles.</li>
+			<li><strong>Sources and licences.</strong> <span class="file">assets/icons/apps/README</span> records the upstream project, path, pinned commit and licence per icon; the GPL, LGPL and CC-BY-SA texts are next to it.  The artwork is unchanged apart from the documented raster/format conversion.</li>
+		</ul>
+	</section>
+
 	<section id="cursors">
 		<h2>Mouse cursors</h2>
 		<p>
@@ -587,7 +702,7 @@
 		<ul>
 			<li><strong>Registers.</strong> <code>BLC_PWM_CTL2</code> at GPU BAR0 + <code>0x1E1250</code> (pipe A; pipe B is <code>+0x100</code>): bit 31 enables, bit 28 is polarity. <code>BLC_PWM_CTL</code> at <code>0x1E1254</code>: period in bits 31:16, duty in bits 15:0. The Cherryview PWM clock is 19.2 MHz with a fixed /16 increment, so 200 Hz is a period of 6000.</li>
 			<li><strong>Probe.</strong> <span class="file">backlight.c</span> matches Intel <code>8086:22b0</code>/<code>22b1</code>, maps the graphics MMIO BAR, reads both pipes, follows the one the firmware enabled and falls back to controller 0. It logs the chosen pipe, period, duty and raw registers to COM1.</li>
-			<li><strong>Use.</strong> The <code>backlight</code> command prints the percentage and PWM state; <code>backlight up|down</code> steps by 10%, <code>backlight 0-100</code> sets a level (clamped to 5..100), and <code>backlight probe</code> dumps both pipes' registers. <code>SYS_BACKLIGHT</code> gives ring 3 the same get/set/step, which drives the control panel's brightness slider. F6/F7 (the ChromeOS EC action-row brightness keys) and the standard <code>E0 14</code>/<code>E0 15</code> brightness scancodes adjust it; the keys are consumed in <span class="file">io.c</span> and never reach a window.</li>
+			<li><strong>Use.</strong> The <code>backlight</code> command prints the percentage and PWM state; <code>backlight up|down</code> steps by 10%, <code>backlight 0-100</code> sets a level (clamped to 5..100), and <code>backlight probe</code> dumps both pipes' registers. <code>SYS_BACKLIGHT</code> gives ring 3 the same get/set/step, which drives the quick-settings popover's brightness slider and the Settings Power page. F6/F7 (the ChromeOS EC action-row brightness keys) and the standard <code>E0 14</code>/<code>E0 15</code> brightness scancodes adjust it; the keys are consumed in <span class="file">io.c</span> and never reach a window.</li>
 			<li><strong>Overlay.</strong> <code>SYS_WM_POLL</code> also reports the backlight percentage and a change counter. After each change the ring-3 WM (<span class="file">ucmd_wm.c</span>) draws a centered <em>Brightness</em> bubble with a sun icon, the percentage and a level bar, keeps it up for 3 s, and composits it above the windows on every pass while it is visible.</li>
 			<li><strong>Limits.</strong> Only the Cherryview/Braswell native PWM (<code>8086:22b0</code>/<code>22b1</code>) is driven. The level is not persisted; a cold boot returns to the firmware's duty.</li>
 		</ul>
@@ -604,7 +719,8 @@
 			<li><code>kernel/wm.c</code>, <code>kernel/wm.h</code>, <code>include/wm_abi.h</code> — kernel window server and shared ABI</li>
 			<li><code>kernel/init.c</code>, <code>kernel/init.h</code> — starts PID 1; init is the only WM creator</li>
 			<li><code>user/apps/wm/ucmd_wm.c</code>, <code>user/lib/uwm/uwm_lib.c</code> — ring-3 WM</li>
-			<li><code>user/apps/netmenu/ucmd_netmenu.c</code> — top-bar control panel (network/WiFi, brightness, power mode, Date &amp; Time)</li>
+			<li><code>user/apps/netmenu/ucmd_netmenu.c</code> — top-bar quick-settings popover (summary, brightness and the Settings section pills)</li>
+			<li><code>user/apps/settings/ucmd_settings.c</code> — titled Settings window: Network, Power, Date &amp; Time, Appearance (wallpaper picker), Windows preferences and About</li>
 			<li><code>user/apps/settime/ucmd_settime.c</code>, <code>kernel/rtc.c</code>, <code>kernel/ntp.c</code> — Date &amp; Time editor, RTC access and SNTP sync</li>
 			<li><code>kernel/gfx.c</code>, <code>kernel/gfx.h</code> — RGB565 window canvases</li>
 			<li><code>kernel/sys_wm.c</code>, <code>kernel/sys_wm.h</code> — WM/window ABI</li>
@@ -619,6 +735,7 @@
 			<li><code>kernel/backlight.c</code>, <code>kernel/backlight.h</code> — Cherryview/VLV panel PWM</li>
 			<li><code>kernel/cursor.c</code>, <code>kernel/cursor.h</code>, <code>kernel/mouse.c</code>, <code>kernel/cursor_shape.h</code> — cursor bundle loader, drawing and the built-in fallback arrow; <code>kernel/cirrus.c</code>, <code>kernel/radeon.c</code> — hardware cursors</li>
 			<li><code>include/icon_abi.h</code>, <code>tools/mkicons.c</code>, <code>assets/icons/adwaita/</code> — UI icon list, the NBICO1 bundle and the Adwaita symbolic SVGs</li>
+			<li><code>include/app_icon_abi.h</code>, <code>tools/mkappicons.c</code>, <code>assets/icons/apps/</code> — full-colour app icon list, the NBAPP1 bundle, the upstream GNOME app SVGs and their 96 px renders</li>
 			<li><code>include/cursor_abi.h</code>, <code>tools/mkcursors.c</code>, <code>tools/xcursor_trim.py</code>, <code>tools/cursor_test.c</code>, <code>assets/cursors/adwaita/</code> — cursor shapes, the NBCUR1 bundle and the Adwaita source images</li>
 		</ul>
 	</section>

+ 5 - 5
docs/index.html

@@ -136,7 +136,7 @@
 			</div>
 			<div class="card">
 				<h3>8 windows</h3>
-				<p>Terminal and canvas windows are composited by the window manager, with per-window RGB565 canvases mapped into the owning process.</p>
+				<p>Terminal and canvas windows are composited by the window manager, with per-window RGB565 canvases mapped into the owning process. A 13-icon GNOME-app dock magnifies under the pointer at the bottom of the screen.</p>
 			</div>
 			<div class="card">
 				<h3>8 MB rootfs</h3>
@@ -212,12 +212,12 @@
 			</a>
 			<a class="card" href="graphics.html">
 				<h3>Graphics &amp; UI</h3>
-				<p>VBE framebuffer, shadow buffer, damage rectangles, compositor, canvas ABI, ngui, the Adwaita UI icons and mouse cursors, the fixed-point TrueType text engine and image codecs.</p>
+				<p>VBE framebuffer, shadow buffer, damage rectangles, compositor, canvas ABI, ngui, the Settings window, the Adwaita UI icons and mouse cursors, the fixed-point TrueType text engine and image codecs.</p>
 				<span class="card-tag">graphics.html</span>
 			</a>
 			<a class="card" href="network.html">
 				<h3>Networking</h3>
-				<p>NIC registry, ARP/ICMP/UDP, DHCP, DNS, NTP, TCP client and listener, TLS 1.3/1.2, USB tethering, WiFi, the top-bar control panel, netconsole and netkexec.</p>
+				<p>NIC registry, ARP/ICMP/UDP, DHCP, DNS, NTP, TCP client and listener, TLS 1.3/1.2, USB tethering, WiFi, the Settings app's network pages, netconsole and netkexec.</p>
 				<span class="card-tag">network.html</span>
 			</a>
 			<a class="card" href="drivers.html#wifi">
@@ -293,11 +293,11 @@
 					</tr>
 					<tr>
 						<td>Userland</td>
-						<td><span class="file">user/apps/&lt;name&gt;/ucmd_&lt;name&gt;.c</span> <span class="file">user/ucmd_lib.h</span> <span class="file">user/lib/libc/</span> <span class="file">user/lib/ngui/</span> <span class="file">user/lib/ufont/</span> <span class="file">user/lib/img/</span> <span class="file">user/lib/tls/</span> <span class="file">user/lib/uhttp/</span> <span class="file">user/lib/ujson/</span> <span class="file">user/apps/browser/</span> <span class="file">user/apps/chat/</span> <span class="file">third_party/quickjs/</span> <span class="file">fonts/</span></td>
+						<td><span class="file">user/apps/&lt;name&gt;/ucmd_&lt;name&gt;.c</span> <span class="file">user/ucmd_lib.h</span> <span class="file">user/lib/libc/</span> <span class="file">user/lib/ngui/</span> <span class="file">user/lib/ufont/</span> <span class="file">user/lib/img/</span> <span class="file">user/lib/uwm/</span> <span class="file">user/lib/tls/</span> <span class="file">user/lib/uhttp/</span> <span class="file">user/lib/ujson/</span> <span class="file">user/apps/browser/</span> <span class="file">user/apps/chat/</span> <span class="file">third_party/quickjs/</span> <span class="file">fonts/</span> <span class="file">assets/icons/apps/</span></td>
 					</tr>
 					<tr>
 						<td>Build &amp; pack</td>
-						<td><span class="file">Makefile</span> <span class="file">tools/mkpack.c</span> <span class="file">tools/mkrootfs.c</span> <span class="file">kernel/kernel.ld</span> <span class="file">user/ucmd.ld</span></td>
+						<td><span class="file">Makefile</span> <span class="file">tools/mkpack.c</span> <span class="file">tools/mkrootfs.c</span> <span class="file">tools/mkappicons.c</span> <span class="file">include/app_icon_abi.h</span> <span class="file">kernel/kernel.ld</span> <span class="file">user/ucmd.ld</span></td>
 					</tr>
 					<tr>
 						<td>Documentation</td>

+ 23 - 20
docs/network.html

@@ -146,18 +146,20 @@
 		<p>
 			The right top-bar status area (network, battery, clock and
 			temperature) is one button that opens
-			<span class="file">ucmd_netmenu.c</span>, the control panel.  The
-			network settings stay collapsed until its Network pill is clicked;
-			the section then asks the kernel for every present driver through
-			<code>SYS_NET_DEVLIST</code> (111), so an RNDIS phone or a USB
-			Ethernet dongle that was not the boot-time winner still appears.
-			Selecting one calls <code>SYS_NET_SELECT</code> (112) and then runs
-			DHCP. The same popover lists scanned WiFi networks; selecting a WPA2
-			network asks for the passphrase and starts the existing
-			<code>wifi</code> supplicant, which opens the data port and runs DHCP
-			itself. Mesh/repeater BSSIDs sharing one SSID are collapsed to the
-			strongest entry (the active BSSID wins when connected), and hidden
-			SSIDs are omitted because the menu cannot join them.
+			<span class="file">ucmd_netmenu.c</span>, the quick-settings
+			popover.  Its Network pill asks the WM to open (or focus)
+			<span class="file">ucmd_settings.c</span> at the Network
+			section.  That page asks the kernel for every present driver
+			through <code>SYS_NET_DEVLIST</code> (111), so an RNDIS phone or
+			a USB Ethernet dongle that was not the boot-time winner still
+			appears. Selecting one calls <code>SYS_NET_SELECT</code> (112)
+			and then runs DHCP. The same page lists scanned WiFi networks;
+			selecting a WPA2 network asks for the passphrase and starts the
+			existing <code>wifi</code> supplicant, which opens the data port
+			and runs DHCP itself. Mesh/repeater BSSIDs sharing one SSID are
+			collapsed to the strongest entry (the active BSSID wins when
+			connected), and hidden SSIDs are omitted because the page cannot
+			join them.
 		</p>
 		<p>
 			<span class="file">rndis.c</span> is the USB tethering path, not a
@@ -188,19 +190,20 @@
 			Data frames are converted between Ethernet and non-QoS 802.11 +
 			LLC/SNAP; EAPOL (ethertype <code>0x888e</code>) never reaches
 			<code>net_pump()</code> and is queued for the supplicant instead.
-			The top-bar control panel starts the same supplicant through
-			<code>wifi connectfile &lt;path&gt;</code>: it stages the SSID,
-			passphrase and BSSID in a small <code>/share/netmenu.wifi</code>
-			record because a <code>SYS_SPAWN</code> argument is limited to
+			The Settings window's Network page starts the same supplicant
+			through <code>wifi connectfile &lt;path&gt;</code>: it stages the
+			SSID, passphrase and BSSID in a small
+			<code>/share/netmenu.wifi</code> record because a
+			<code>SYS_SPAWN</code> argument is limited to
 			<code>VFS_PATH_MAX</code> (64) bytes. The helper removes the file
 			after reading it.
 		</p>
 		<p>
-			A successful <code>wifi connect</code> (from the CLI or the menu) adds
+			A successful <code>wifi connect</code> (from the CLI or Settings) adds
 			the network to a most-recently-used list of up to
 			<code>WIFI_CFG_MAX</code> (16) SSID/passphrase records in
 			<code>/data/WIFI.CFG</code> on the persistent <code>NEBOSDATA</code>
-			partition. The control panel marks every scanned SSID that is in the
+			partition. The Settings page marks every scanned SSID that is in the
 			list as <em>saved</em>, joins it with the stored passphrase without
 			asking again, and its <em>Saved</em> view lists the records with a
 			<em>Forget</em> button each. The <code>wifi saved</code> command
@@ -508,7 +511,7 @@
 					<tr><td>WebDAV</td><td>No authentication</td><td>Anyone on the LAN can read mounts and write <code>/share</code>.</td></tr>
 					<tr><td>Chat session</td><td>Cookie saved in <code>/data/CHAT.CFG</code>, or <code>/share/chat.cfg</code> without a <code>/data</code> mount</td><td>A bearer credential on disk while <code>/data</code> is mounted, otherwise RAM until sign-out; the password is sent over unverified TLS and never stored.</td></tr>
 					<tr><td>WiFi WPA2</td><td>PSK/CCMP, handshake in ring 3</td><td>The SNonce comes from the weak TLS DRBG. The PTK/replay are kept in the kernel (<code>SYS_WIFI_SET_PTK</code>/<code>SYS_WIFI_GET_PTK</code>) and fetched by the <code>wifi __keep</code> helper by connection ID for group rekeys; no WPA3/PMF.</td></tr>
-					<tr><td>Saved WiFi credentials</td><td>Plaintext <code>/data/WIFI.CFG</code></td><td>Up to 16 SSID/passphrase pairs are stored in an 8.3 FAT file (most recently used first) so <code>wifi autoconnect</code> can join any known network at boot; anyone who can read the disk can read the passphrases. <code>wifi forget [ssid]</code> and the menu's <em>Saved</em> view remove records.</td></tr>
+					<tr><td>Saved WiFi credentials</td><td>Plaintext <code>/data/WIFI.CFG</code></td><td>Up to 16 SSID/passphrase pairs are stored in an 8.3 FAT file (most recently used first) so <code>wifi autoconnect</code> can join any known network at boot; anyone who can read the disk can read the passphrases. <code>wifi forget [ssid]</code> and the Settings <em>Saved</em> view remove records.</td></tr>
 					<tr><td>NTP</td><td>Unauthenticated SNTP</td><td>Anyone who can answer for the server name can set the clock.</td></tr>
 					<tr><td>NIC ownership</td><td>Raw lease for packet commands; shared TCP client table</td><td>Raw commands are mutually exclusive; up to twelve processes can hold one TCP connection each.  A killed owner is force-released.</td></tr>
 					<tr><td>Kernel/user isolation</td><td>None (identity map)</td><td>A ring-3 bug can reach any mapped kernel page.</td></tr>
@@ -524,7 +527,7 @@
 			<li><code>kernel/e1000e.c</code>, <code>kernel/r8168.c</code>, <code>kernel/ne2000.c</code>, <code>kernel/asix.c</code>, <code>kernel/rndis.c</code></li>
 			<li><code>kernel/wifi.c</code>, <code>kernel/wifi_fw.c</code>, <code>kernel/iwl_mvm.c</code>, <code>kernel/iwl_dvm.c</code>, <code>kernel/iwl_trans.c</code>, <code>kernel/rtl8821au.c</code> — Intel 7265D/3165 and 6200/6300 WiFi, Realtek RTL8821AU USB WiFi</li>
 			<li><code>user/lib/wifi/wpa.c</code>, <code>user/lib/tls/wpa_crypto.c</code>, <code>user/apps/wifi/ucmd_wifi.c</code> — WPA2-PSK supplicant and the <code>wifi</code> command (<code>make test-wpa</code>)</li>
-			<li><code>user/apps/netmenu/ucmd_netmenu.c</code>, <code>include/wifi_cfg.h</code>, <code>user/lib/wifi/wifi_store.c/h</code> — top-bar control panel, staged WiFi connect request and the saved-network list</li>
+			<li><code>user/apps/netmenu/ucmd_netmenu.c</code>, <code>user/apps/settings/ucmd_settings.c</code>, <code>include/wifi_cfg.h</code>, <code>user/lib/wifi/wifi_store.c/h</code> — top-bar quick popover, Settings window (NIC/WiFi pages), staged WiFi connect request and the saved-network list</li>
 			<li><code>kernel/net.c</code>, <code>kernel/net.h</code> — ARP cache/ICMP/UDP/IP</li>
 			<li><code>kernel/netcore.c</code>, <code>kernel/netcore.h</code> — shared receive pump and IRQ helpers</li>
 			<li><code>kernel/dhcp.c</code>, <code>kernel/dns.c</code>, <code>kernel/ntp.c</code></li>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 7 - 5
docs/userland.html


+ 57 - 0
include/app_icon_abi.h

@@ -0,0 +1,57 @@
+/* Full-colour application icons and the NBAPP1 icon bundle.
+ *
+ * Shared by the ring-3 WM (user/lib/uwm/uwm_lib.c, user/apps/wm/ucmd_wm.c)
+ * and the host tool tools/mkappicons.c, which converts the 96 px PNGs in
+ * assets/icons/apps/ into /ramfs/icons/apps96.icn.
+ *
+ * APP_ICON_LIST is an X-macro: X(ENUM_SUFFIX, "source file").  The order is
+ * the icon id and the order of the images in the bundle, so append only.
+ * The source files are the upstream GNOME app icon basenames; assets/icons/apps/
+ * holds both the unchanged SVGs and the pre-rendered <name>.png files. */
+#ifndef APP_ICON_ABI_H
+#define APP_ICON_ABI_H
+
+#define APP_ICON_LIST(X) \
+	X(TERMINAL, "org.gnome.Console")                     \
+	X(FILES,    "org.gnome.Nautilus")                    \
+	X(WEB,      "org.gnome.Epiphany")                    \
+	X(CHAT,     "org.gnome.Fractal")                     \
+	X(EDITOR,   "org.gnome.TextEditor")                  \
+	X(GALLERY,  "org.gnome.Adwaita1.Demo")               \
+	X(CLOCK,    "org.gnome.clocks")                      \
+	X(COLORS,   "org.gnome.design.Palette")              \
+	X(MINES,    "org.gnome.Mines")                       \
+	X(CARDS,    "gnome-aisleriot")                       \
+	X(DISKS,    "org.gnome.DiskUtility")                 \
+	X(TASKS,    "org.gnome.SystemMonitor")               \
+	X(SERVICES, "org.gnome.tweaks")                      \
+	X(SETTINGS, "org.gnome.Settings")                    \
+	X(DATETIME, "org.gnome.Calendar")
+
+#define APP_ICON_ENUM_(e, file) APP_ICON_##e,
+enum app_icon {
+	APP_ICON_LIST(APP_ICON_ENUM_)
+	APP_ICON_COUNT
+};
+#undef APP_ICON_ENUM_
+
+/* Bundle geometry.  The dock draws at a 48 px base and magnifies to 1.75x,
+ * so 96 px keeps every scale at native resolution or downscaled. */
+#define APP_ICON_PX 96
+#define APP_ICON_BUNDLE_PATH "/ramfs/icons/apps96.icn"
+
+/* ---- NBAPP1 bundle ------------------------------------------------------
+ * [struct app_icon_file_hdr][count x (96*96 premultiplied RGB565+alpha)]
+ * One pixel is three little-endian bytes: RGB565 low/high, then alpha.
+ * The RGB channels are premultiplied by alpha, so a scaled blit can use
+ * source-over without dark fringes on the transparent edges. */
+#define APP_ICON_FILE_MAGIC "NBAPP1\0\0"
+
+struct app_icon_file_hdr {
+	char magic[8];
+	unsigned short count;    /* number of icons */
+	unsigned short size;     /* icon edge in px, APP_ICON_PX */
+	unsigned int reserved;
+};
+
+#endif

+ 7 - 0
include/syscall.h

@@ -290,6 +290,13 @@ struct sys_spawn {
 #define SYS_TTY_CLOSE     126 /* (id) -> 0/-1; owner only */
 #define SYS_IS_INIT       127 /* () -> 1 when the caller is the kernel's init */
 
+/* Window-manager preferences (SYS_WM_PREFS: op 0 = struct wm_prefs *out,
+ * op 1 = const struct wm_prefs *in) and the Settings launcher request. */
+#define SYS_WM_PREFS       128
+#define SYS_WM_PREFS_GET   0
+#define SYS_WM_PREFS_SET   1
+#define SYS_WM_OPEN_SETTINGS 129 /* (int WM_SETTINGS_* section) -> 0/-1 */
+
 struct sys_netinfo {
 	unsigned int present;
 	unsigned char mac[6];

+ 55 - 1
include/wm_abi.h

@@ -20,7 +20,10 @@
  * outer edge and WM_RESIZE_OUT px outside it.  Presses in the inside part
  * are not routed to the window content; the whole band starts a resize. */
 #define WM_RESIZE_IN  1
-#define WM_RESIZE_OUT 3
+#define WM_RESIZE_OUT 4
+/* Corner grab squares reach this far inside the window along both edges, so
+ * the diagonal resize is easier to hit than the thin edge band. */
+#define WM_CORNER_IN  12
 
 /* Keep at least this much of the title bar on-screen when a window is dragged
  * past an edge, so it can always be grabbed and brought back. */
@@ -37,6 +40,45 @@
 #define WM_KIND_NONE 0
 #define WM_KIND_GFX  1
 
+/* Settings sections.  The control-center popover's pills ask the WM to open
+ * one of these in the Settings app, and the app's sidebar uses the same
+ * order. */
+#define WM_SETTINGS_NETWORK    0
+#define WM_SETTINGS_POWER      1
+#define WM_SETTINGS_DATETIME   2
+#define WM_SETTINGS_APPEARANCE 3
+#define WM_SETTINGS_WINDOWS    4
+#define WM_SETTINGS_ABOUT      5
+#define WM_SETTINGS_COUNT      6
+
+/* Persistent window-manager preferences.  The Settings app writes this
+ * structure to a small file on /data (or /share before the data volume is
+ * mounted) and pushes it through SYS_WM_PREFS, so a running WM applies the
+ * change immediately and a restarted WM can restore it. */
+#define WM_DEFAULT_BG_RGB 0x202030u
+
+struct wm_prefs {
+	unsigned int shadow;       /* 1 = soft window shadows */
+	unsigned int snap;         /* 1 = snap to screen edges on drop */
+	unsigned int resist;       /* 1 = edge resistance while dragging */
+	unsigned int bg_rgb;       /* desktop colour without a wallpaper */
+	unsigned int reserved[4];
+};
+
+#define WM_PREFS_MAGIC   "NBSET1\0\0"
+#define WM_PREFS_VERSION 1u
+#define WM_PREFS_DATA    "/data/SETTINGS.CFG"
+#define WM_PREFS_SHARE   "/share/settings.cfg"
+/* The WM writes the requested section here before focusing an already
+ * running Settings window; the app polls it and switches panes. */
+#define WM_SETTINGS_REQUEST "/share/settings.req"
+
+struct wm_prefs_file {
+	char magic[8];
+	unsigned int version;
+	struct wm_prefs prefs;
+};
+
 /* Canvas-window flags (struct win_create.flags).  A popover is chromeless,
  * always on top and anchored by the WM under the top-bar network icon; its
  * canvas fills the whole window rectangle. */
@@ -72,6 +114,13 @@ struct wm_status {
 	/* Bumped when a client installs a new wallpaper (SYS_WM_WALLPAPER);
 	 * the WM reloads its copy when this changes. */
 	unsigned int wallpaper_seq;
+	/* Current preferences and a change counter (SYS_WM_PREFS). */
+	unsigned int prefs_seq;
+	struct wm_prefs prefs;
+	/* A client asked the WM to open Settings at a section
+	 * (SYS_WM_OPEN_SETTINGS); the sequence makes every request visible. */
+	unsigned int settings_req_seq;
+	unsigned int settings_req_section;
 };
 
 /* Wallpaper file: one header followed by tightly packed RGB565 pixels,
@@ -138,6 +187,11 @@ struct wm_geom {
 
 struct wm_size {
 	unsigned int w, h;
+	/* New window origin minus the old one, in screen pixels.  The kernel
+	 * carries the previous front canvas over anchored by this delta, so a
+	 * left/top edge drag keeps the content in place instead of sliding it
+	 * or blanking it until the client repaints. */
+	int dx, dy;
 };
 
 /* Generic canvas-window client API (gfx commands own their own window). */

+ 30 - 1
kernel/sys_wm.c

@@ -3,6 +3,7 @@
  * a buggy WM returns -1 instead of faulting in ring 0. */
 
 #include "sys_wm.h"
+#include "syscall.h"
 #include "paging.h"
 #include "process.h"
 #include "wm.h"
@@ -282,7 +283,7 @@ int sys_wm_resize(unsigned int index, const struct wm_size *in)
 	if (!user_ok(in, sizeof(s), 0))
 		return -1;
 	copy_from_user(&s, in, sizeof(s));
-	return wm_server_resize(index, s.w, s.h);
+	return wm_server_resize(index, s.w, s.h, s.dx, s.dy);
 }
 
 int sys_win_key_wait(unsigned int timeout_ms)
@@ -317,3 +318,31 @@ int sys_wm_wallpaper(int op)
 	wm_server_wallpaper_changed();
 	return 0;
 }
+
+int sys_wm_prefs(int op, void *arg)
+{
+	struct wm_prefs p;
+
+	if (op == SYS_WM_PREFS_GET) {
+		if (!user_ok(arg, sizeof(p), 1))
+			return -1;
+		if (wm_server_prefs_get(&p) != 0)
+			return -1;
+		copy_to_user(arg, &p, sizeof(p));
+		return 0;
+	}
+	if (op == SYS_WM_PREFS_SET) {
+		if (!user_ok(arg, sizeof(p), 0))
+			return -1;
+		copy_from_user(&p, arg, sizeof(p));
+		return wm_server_prefs_set(&p);
+	}
+	return -1;
+}
+
+int sys_wm_open_settings(int section)
+{
+	if (section < 0 || section >= WM_SETTINGS_COUNT)
+		return -1;
+	return wm_server_open_settings((unsigned int)section);
+}

+ 2 - 0
kernel/sys_wm.h

@@ -33,6 +33,8 @@ int sys_win_set_cursor(int shape);
 int sys_wm_set_cursor(int shape);
 int sys_wm_mouse_capture(int on);
 int sys_wm_wallpaper(int op);
+int sys_wm_prefs(int op, void *arg);
+int sys_wm_open_settings(int section);
 
 /* Set once the first application window (the boot terminal) has presented
  * a frame; kernel_main waits for it before the USB bring-up. */

+ 4 - 0
kernel/syscall.c

@@ -364,6 +364,10 @@ static int syscall_dispatch_locked(int num, int a1, int a2, int a3)
 		return sys_wm_mouse_capture((int)a1);
 	case SYS_WM_WALLPAPER:
 		return sys_wm_wallpaper((int)a1);
+	case SYS_WM_PREFS:
+		return sys_wm_prefs((int)a1, (void *)a2);
+	case SYS_WM_OPEN_SETTINGS:
+		return sys_wm_open_settings((int)a1);
 	case SYS_SCREEN_INFO: {
 		struct sys_screen *out = (struct sys_screen *)a1;
 

+ 118 - 5
kernel/wm.c

@@ -52,6 +52,15 @@ static int wm_frame_active;
 static int wm_first_frame;
 static int wm_boot_ready;
 static unsigned int wm_wallpaper_seq;
+/* Settings live here so they survive a WM restart; the Settings app and the
+ * WM exchange them through SYS_WM_PREFS.  Defaults match the old hardcoded
+ * ring-3 WM behaviour. */
+static struct wm_prefs wm_prefs = {
+	1, 1, 1, WM_DEFAULT_BG_RGB, { 0, 0, 0, 0 }
+};
+static unsigned int wm_prefs_seq;
+static unsigned int wm_settings_req_seq;
+static unsigned int wm_settings_req_section;
 static unsigned int wm_last_seen;
 
 static inline unsigned int irq_save_disable(void)
@@ -535,7 +544,49 @@ int wm_server_win_scroll(struct win_scroll *out)
 	return (out->dx || out->dy) ? 1 : 0;
 }
 
-static int wm_resize_window(unsigned int index, unsigned int cw, unsigned int ch)
+/* Keep the previous frame visible across a resize: copy the overlap of the old
+ * front canvas into the new one, shifted by the window's origin delta
+ * (dx,dy = new origin - old origin), so the pixels stay put on screen.  The
+ * newly exposed area starts black, and the client's back buffer stays blank on
+ * purpose: it presents a full frame right after SYS_WIN_ACK_RESIZE.  Without
+ * this the WM composited a zeroed canvas and the content blinked black on
+ * every resize step until the owner repainted. */
+static void wm_carry_canvas(const struct gfx_canvas *old,
+			    const struct gfx_canvas *fresh, int dx, int dy)
+{
+	int x0 = 0, y0 = 0, x1, y1, y;
+
+	if (!old->px || !fresh->px)
+		return;
+	/* New pixel (x,y) shows old pixel (x+dx, y+dy). */
+	x1 = (int)fresh->w;
+	if (x0 < -dx)
+		x0 = -dx;
+	if (x1 > (int)old->w - dx)
+		x1 = (int)old->w - dx;
+	y1 = (int)fresh->h;
+	if (y0 < -dy)
+		y0 = -dy;
+	if (y1 > (int)old->h - dy)
+		y1 = (int)old->h - dy;
+	if (x0 >= x1 || y0 >= y1)
+		return;
+	for (y = y0; y < y1; y++) {
+		const unsigned short *s = old->px +
+			(unsigned long)(y + dy) * old->w + (x0 + dx);
+		unsigned short *d = fresh->px +
+			(unsigned long)y * fresh->w + x0;
+		unsigned int n = (unsigned int)(x1 - x0);
+
+		__asm__ volatile ("cld; rep movsw"
+				  : "+D"(d), "+c"(n), "+S"(s)
+				  :
+				  : "memory");
+	}
+}
+
+static int wm_resize_window(unsigned int index, unsigned int cw,
+			    unsigned int ch, int dx, int dy)
 {
 	struct window *w;
 	struct gfx_canvas nf;
@@ -566,6 +617,7 @@ static int wm_resize_window(unsigned int index, unsigned int cw, unsigned int ch
 	for (i = 0; i < cw * ch; i++)
 		nb[i] = 0;
 
+	wm_carry_canvas(&w->canvas, &nf, dx, dy);
 	wm_server_unmap_index(index);
 	gfx_free(&w->canvas);
 	if (w->pending_back) {
@@ -589,11 +641,12 @@ static int wm_resize_window(unsigned int index, unsigned int cw, unsigned int ch
 	return 0;
 }
 
-int wm_server_resize(unsigned int index, unsigned int cw, unsigned int ch)
+int wm_server_resize(unsigned int index, unsigned int cw, unsigned int ch,
+		     int dx, int dy)
 {
 	if (!wm_server_is_wm())
 		return -1;
-	return wm_resize_window(index, cw, ch);
+	return wm_resize_window(index, cw, ch, dx, dy);
 }
 
 /* A canvas app resizes its own popover when it expands or collapses a
@@ -605,7 +658,7 @@ int wm_server_win_resize_self(unsigned int cw, unsigned int ch)
 
 	if (idx < 0 || wm_frame_active)
 		return -1;
-	return wm_resize_window((unsigned int)idx, cw, ch);
+	return wm_resize_window((unsigned int)idx, cw, ch, 0, 0);
 }
 
 int wm_server_win_set_cursor(int shape)
@@ -1128,6 +1181,10 @@ int wm_server_poll(struct wm_status *out)
 		out->backlight_seq = backlight_seq();
 	}
 	out->wallpaper_seq = wm_wallpaper_seq;
+	out->prefs_seq = wm_prefs_seq;
+	out->prefs = wm_prefs;
+	out->settings_req_seq = wm_settings_req_seq;
+	out->settings_req_section = wm_settings_req_section;
 	wm_full_redraw = 0;
 	return 0;
 }
@@ -1144,6 +1201,48 @@ void wm_server_wallpaper_changed(void)
 	wm_wallpaper_seq++;
 }
 
+static void wm_prefs_sanitize(struct wm_prefs *p)
+{
+	unsigned int i;
+
+	p->shadow = p->shadow ? 1u : 0u;
+	p->snap = p->snap ? 1u : 0u;
+	p->resist = p->resist ? 1u : 0u;
+	p->bg_rgb &= 0x00FFFFFFu;
+	for (i = 0; i < sizeof(p->reserved) / sizeof(p->reserved[0]); i++)
+		p->reserved[i] = 0;
+}
+
+int wm_server_prefs_get(struct wm_prefs *out)
+{
+	if (!out)
+		return -1;
+	*out = wm_prefs;
+	return 0;
+}
+
+int wm_server_prefs_set(const struct wm_prefs *in)
+{
+	struct wm_prefs p;
+
+	if (!in)
+		return -1;
+	p = *in;
+	wm_prefs_sanitize(&p);
+	wm_prefs = p;
+	wm_prefs_seq++;
+	return 0;
+}
+
+int wm_server_open_settings(unsigned int section)
+{
+	if (section >= WM_SETTINGS_COUNT)
+		return -1;
+	wm_settings_req_section = section;
+	wm_settings_req_seq++;
+	return 0;
+}
+
 int wm_server_begin(void)
 {
 	if (!wm_server_is_wm() || wm_frame_active)
@@ -1376,15 +1475,29 @@ static int wm_window_at(int px, int py)
 }
 
 /* Resize band of a normal window: WM_RESIZE_IN px inside and WM_RESIZE_OUT
- * px outside every edge.  Mirrors the ring-3 WM's resize_edges_at(). */
+ * px outside every edge, with WM_CORNER_IN px corner squares.  Mirrors the
+ * ring-3 WM's resize_edges_at(). */
 static int wm_in_resize_band(const struct window *w, int mx, int my)
 {
 	int l = w->x, t = w->y;
 	int r = l + (int)w->pw, b = t + (int)w->ph;
+	unsigned int xl, xr, yt, yb;
 	int near_x, near_y;
 
 	if (w->popover || my < WM_BAR_H)
 		return 0;
+	/* Corner squares as unsigned range tests: [edge-OUT, edge+CORNER_IN)
+	 * on one axis, intersected across the two axes. */
+	xl = (unsigned int)(mx - (l - WM_RESIZE_OUT)) <
+	     WM_RESIZE_OUT + WM_CORNER_IN;
+	xr = (unsigned int)(mx - (r - WM_CORNER_IN)) <
+	     WM_RESIZE_OUT + WM_CORNER_IN;
+	yt = (unsigned int)(my - (t - WM_RESIZE_OUT)) <
+	     WM_RESIZE_OUT + WM_CORNER_IN;
+	yb = (unsigned int)(my - (b - WM_CORNER_IN)) <
+	     WM_RESIZE_OUT + WM_CORNER_IN;
+	if ((xl | xr) & (yt | yb))
+		return 1;
 	near_x = mx >= l - WM_RESIZE_OUT && mx < r + WM_RESIZE_OUT;
 	near_y = my >= t - WM_RESIZE_OUT && my < b + WM_RESIZE_OUT;
 	return (near_y && mx >= l - WM_RESIZE_OUT && mx < l + WM_RESIZE_IN) ||

+ 5 - 1
kernel/wm.h

@@ -82,7 +82,8 @@ int  wm_server_win_present(const struct wm_win_present *in);
 int  wm_server_win_close(void);
 int  wm_server_win_info(struct win_info *out);
 int  wm_server_win_ack_resize(void);
-int  wm_server_resize(unsigned int index, unsigned int cw, unsigned int ch);
+int  wm_server_resize(unsigned int index, unsigned int cw, unsigned int ch,
+		      int dx, int dy);
 int  wm_server_key_poll(void);
 int  wm_server_key_wait(unsigned int timeout_ms);
 int  wm_server_win_pointer(struct win_pointer *out);
@@ -93,6 +94,9 @@ int  wm_server_win_set_cursor(int shape);
 int  wm_server_set_cursor(int shape);
 int  wm_server_set_pointer_capture(int on);
 void wm_server_wallpaper_changed(void);
+int  wm_server_prefs_get(struct wm_prefs *out);
+int  wm_server_prefs_set(const struct wm_prefs *in);
+int  wm_server_open_settings(unsigned int section);
 void wm_server_boot_ready(void);
 struct window *wm_focused_window(void);
 int  wm_is_focused(const struct window *w);

+ 210 - 0
tools/mkappicons.c

@@ -0,0 +1,210 @@
+/* mkappicons: turn the pre-rendered GNOME app icon PNGs into an NBAPP1
+ * bundle of premultiplied RGB565+alpha images.
+ *
+ *   ./mkappicons <asset-dir> <size> <out.icn> [-v]
+ *
+ * Every APP_ICON_LIST entry (include/app_icon_abi.h) names
+ * <asset-dir>/<file>.png.  The PNGs are committed next to the upstream SVGs
+ * so the normal build needs neither rsvg-convert nor an SVG rasterizer.
+ * tools/render_appicons.sh regenerates them from the SVGs.
+ *
+ * The in-tree image library (user/lib/img) does the PNG decode; the output
+ * is written straight into the bundle consumed by uwm_lib. */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "app_icon_abi.h"
+#include "lib/img/img.h"
+
+#define APP_ICON_MAX_FILE (4u * 1024u * 1024u)
+
+struct icon_def {
+	const char *name;
+	const char *file;
+};
+
+#define ICON_DEF_(e, file) { #e, file },
+static const struct icon_def icons[] = { APP_ICON_LIST(ICON_DEF_) };
+#undef ICON_DEF_
+#define NICONS ((int)(sizeof(icons) / sizeof(icons[0])))
+
+static const char *cur_file;
+
+static void die(const char *msg, const char *detail)
+{
+	fprintf(stderr, "mkappicons: %s: %s%s%s\n",
+		cur_file ? cur_file : "-", msg,
+		detail ? ": " : "", detail ? detail : "");
+	exit(1);
+}
+
+static unsigned char *read_file(const char *path, unsigned int *out_len)
+{
+	FILE *f = fopen(path, "rb");
+	long n;
+	unsigned char *buf;
+
+	if (!f)
+		return NULL;
+	if (fseek(f, 0, SEEK_END) != 0) {
+		fclose(f);
+		return NULL;
+	}
+	n = ftell(f);
+	if (n <= 0 || n > (long)APP_ICON_MAX_FILE) {
+		fclose(f);
+		return NULL;
+	}
+	if (fseek(f, 0, SEEK_SET) != 0) {
+		fclose(f);
+		return NULL;
+	}
+	buf = malloc((size_t)n);
+	if (!buf || fread(buf, 1, (size_t)n, f) != (size_t)n) {
+		fclose(f);
+		free(buf);
+		return NULL;
+	}
+	fclose(f);
+	*out_len = (unsigned int)n;
+	return buf;
+}
+
+static void write_u16(FILE *f, unsigned int v)
+{
+	fputc((int)(v & 0xFF), f);
+	fputc((int)((v >> 8) & 0xFF), f);
+}
+
+int main(int argc, char **argv)
+{
+	const char *dir, *out_path;
+	unsigned int size, i;
+	int verbose = 0;
+	FILE *out;
+	unsigned short count;
+
+	if (argc < 4) {
+		fprintf(stderr,
+			"usage: %s <asset-dir> <size> <out.icn> [-v]\n",
+			argv[0]);
+		return 2;
+	}
+	dir = argv[1];
+	size = (unsigned int)strtoul(argv[2], NULL, 0);
+	out_path = argv[3];
+	if (argc > 4 && !strcmp(argv[4], "-v"))
+		verbose = 1;
+	if (size != APP_ICON_PX) {
+		fprintf(stderr, "mkappicons: size must be %d (got %u)\n",
+			APP_ICON_PX, size);
+		return 2;
+	}
+	if (NICONS > 65535) {
+		fprintf(stderr, "mkappicons: too many icons\n");
+		return 2;
+	}
+
+	out = fopen(out_path, "wb");
+	if (!out) {
+		fprintf(stderr, "mkappicons: cannot create %s\n", out_path);
+		return 1;
+	}
+	count = (unsigned short)NICONS;
+	fwrite(APP_ICON_FILE_MAGIC, 1, 8, out);
+	write_u16(out, count);
+	write_u16(out, size);
+	write_u16(out, 0);
+	write_u16(out, 0);
+
+	for (i = 0; i < (unsigned int)NICONS; i++) {
+		char path[1024];
+		unsigned char *data;
+		unsigned int len = 0, j, opaque = 0;
+		struct img_info info;
+		struct img_options opt;
+		struct img_mem mem;
+		struct img_image img;
+		unsigned int arena_bytes;
+		unsigned char *arena;
+		int r;
+
+		snprintf(path, sizeof(path), "%s/%s.png", dir, icons[i].file);
+		cur_file = path;
+		data = read_file(path, &len);
+		if (!data)
+			die("cannot read PNG", NULL);
+		memset(&info, 0, sizeof(info));
+		r = img_sniff(data, len, &info);
+		if (r != 0)
+			die("not an image", img_error_string(r));
+		if (info.format != IMG_FMT_PNG)
+			die("not a PNG", NULL);
+		if (info.width != size || info.height != size) {
+			char buf[64];
+
+			snprintf(buf, sizeof(buf), "%ux%u, expected %ux%u",
+				 info.width, info.height, size, size);
+			die("wrong dimensions", buf);
+		}
+		arena_bytes = img_estimate(&info);
+		if (arena_bytes < 65536)
+			arena_bytes = 65536;
+		arena = malloc(arena_bytes);
+		if (!arena)
+			die("out of memory", NULL);
+		img_mem_init(&mem, arena, arena_bytes);
+		memset(&opt, 0, sizeof(opt));
+		opt.max_pixels = size * size;
+		memset(&img, 0, sizeof(img));
+		r = img_decode(data, len, &opt, &mem, &img);
+		if (r != 0)
+			die("decode failed", img_error_string(r));
+		if (img.w != size || img.h != size)
+			die("decoder size mismatch", NULL);
+
+		for (j = 0; j < size * size; j++) {
+			unsigned int v = img.px[j];
+			unsigned int a = img.alpha ? img.alpha[j] : 255u;
+			unsigned int r5, g6, b5, rr, gg, bb;
+
+			if (!a) {
+				write_u16(out, 0);
+				fputc(0, out);
+				continue;
+			}
+			opaque++;
+			r5 = (v >> 11) & 0x1F;
+			g6 = (v >> 5) & 0x3F;
+			b5 = v & 0x1F;
+			rr = (r5 << 3) | (r5 >> 2);
+			gg = (g6 << 2) | (g6 >> 4);
+			bb = (b5 << 3) | (b5 >> 2);
+			if (a != 255) {
+				rr = (rr * a + 127) / 255;
+				gg = (gg * a + 127) / 255;
+				bb = (bb * a + 127) / 255;
+			}
+			v = ((rr >> 3) << 11) | ((gg >> 2) << 5) | (bb >> 3);
+			write_u16(out, v);
+			fputc((int)a, out);
+		}
+		if (!opaque)
+			die("image is fully transparent", NULL);
+		if (verbose)
+			printf("%-9s %-38s %7u opaque px\n",
+			       icons[i].name, icons[i].file, opaque);
+		free(arena);
+		free(data);
+		cur_file = NULL;
+	}
+	if (fclose(out) != 0) {
+		fprintf(stderr, "mkappicons: write error\n");
+		return 1;
+	}
+	if (verbose)
+		printf("wrote %s: %u icons at %ux%u\n",
+		       out_path, (unsigned int)count, size, size);
+	return 0;
+}

+ 187 - 26
user/apps/browser/browser.c

@@ -10186,6 +10186,20 @@ static void alpha_end(struct ngui_rect r, struct ngui_rect box, int a)
 	}
 }
 
+/* A table centred by legacy markup: a <center> parent or align="center".
+ * CSS text-align on the parent does not centre a block table, as in
+ * browsers. */
+static int table_centered(unsigned int node)
+{
+	const char *al = br_find_attr(&doc, node, "align");
+	unsigned int p = doc.nodes[node].parent;
+
+	if (al && (al[0] == 'c' || al[0] == 'C'))
+		return 1;
+	return p < doc.nnode && doc.nodes[p].type == BR_NODE_ELEM &&
+	       doc.nodes[p].tag == BR_TAG_CENTER;
+}
+
 static void layout_block(struct lay *l, unsigned int node,
 			 const struct br_style *st, int depth,
 			 unsigned short link)
@@ -10457,6 +10471,12 @@ static void layout_block(struct lay *l, unsigned int node,
 			ml = free_w;
 		} else if (st->mr_auto) {
 			mr = free_w;
+		} else if (doc.nodes[node].tag == BR_TAG_TABLE &&
+			   table_centered(node)) {
+			/* <center><table width=85%> (Hacker News) and
+			 * <table align=center> centre the table box. */
+			ml = free_w / 2;
+			mr = free_w - ml;
 		}
 	}
 	if (doc.nodes[node].tag == BR_TAG_IMG) {
@@ -10842,6 +10862,15 @@ static int text_space(char c)
 	return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f';
 }
 
+/* intrinsic_width() measures the max-content width (everything on one
+ * line).  With iw_min set it measures the min-content width instead: every
+ * word, image or inline box is its own line, so the result is the widest
+ * unbreakable piece (CSS auto table layout needs both). */
+static int iw_min;
+#define IW_ADD(w) do { int iw_w_ = (w); \
+	if (iw_min) { if (iw_w_ > max_w) max_w = iw_w_; } \
+	else line_w += iw_w_; } while (0)
+
 static int intrinsic_width(struct ngui *ui, unsigned int node,
 			   const struct br_style *pst, int depth, int base)
 {
@@ -10856,8 +10885,8 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 
 		/* Icon boxes (::before/::after with a size) are inline
 		 * content of the element. */
-		line_w += pseudo_box_w(node, pst, 1, &ps, base) +
-			  pseudo_box_w(node, pst, 2, &ps, base);
+		IW_ADD(pseudo_box_w(node, pst, 1, &ps, base) +
+			  pseudo_box_w(node, pst, 2, &ps, base));
 	}
 	for (c = doc.nodes[node].first; c; c = doc.nodes[c].next) {
 		struct br_node *nd = &doc.nodes[c];
@@ -10868,7 +10897,7 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 			unsigned int tn = nd->text_len;
 
 			if (doc.nodes[node].tag == BR_TAG_PRE) {
-				line_w += (int)face_text_width(ui, pst, t, tn);
+				IW_ADD((int)face_text_width(ui, pst, t, tn));
 			} else {
 				unsigned int ti = 0;
 				int first = 1;
@@ -10886,10 +10915,10 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 					if (ti == ts)
 						break;
 					if (!first || lead)
-						line_w += sp;
+						IW_ADD(sp);
 					lead = 0;
-					line_w += (int)face_text_width(ui, pst,
-						t + ts, ti - ts);
+					IW_ADD((int)face_text_width(ui, pst,
+						t + ts, ti - ts));
 					first = 0;
 				}
 			}
@@ -10928,11 +10957,11 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 			if (cs.width_kind) {
 				int ww = style_width_px(&cs, base);
 
-				line_w += ww > 0 ? ww : 64;
+				IW_ADD(ww > 0 ? ww : 64);
 			} else if (nd->width_attr) {
-				line_w += nd->width_attr;
+				IW_ADD(nd->width_attr);
 			} else if (nd->height_attr && iw && ih) {
-				line_w += iw * (int)nd->height_attr / ih;
+				IW_ADD(iw * (int)nd->height_attr / ih);
 			} else if (cs.height_kind && iw && ih) {
 				/* A percentage height needs the parent's
 				 * definite height (the logo's 2rem box), as in
@@ -10944,11 +10973,11 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 					 (int)pst->height * (int)cs.height / 100 :
 					 0;
 
-				line_w += hh > 0 ? iw * hh / ih : iw;
+				IW_ADD(hh > 0 ? iw * hh / ih : iw);
 			} else if (iw) {
-				line_w += iw;
+				IW_ADD(iw);
 			} else {
-				line_w += 64;
+				IW_ADD(64);
 			}
 			continue;
 		}
@@ -10963,9 +10992,9 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 			if (s_eq(br_type(&doc, c), "checkbox") ||
 			    s_eq(br_type(&doc, c), "radio"))
 				fw = 16;
-			line_w += (fw > 0 ? fw : 120) +
+			IW_ADD((fw > 0 ? fw : 120) +
 				  mp_px(&cs, 3, base) + mp_px(&cs, 1, base) +
-				  mp_px(&cs, 7, base) + mp_px(&cs, 5, base);
+				  mp_px(&cs, 7, base) + mp_px(&cs, 5, base));
 			continue;
 		}
 		if (nd->tag == BR_TAG_SVG) {
@@ -10978,7 +11007,7 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 			sw += mp_px(&cs, 3, base) + mp_px(&cs, 1, base);
 			if (flex_row || cs.display == BR_DISPLAY_INLINE ||
 			    cs.display == BR_DISPLAY_INLINE_BLOCK) {
-				line_w += sw;
+				IW_ADD(sw);
 			} else {
 				if (line_w > max_w)
 					max_w = line_w;
@@ -11010,7 +11039,7 @@ static int intrinsic_width(struct ngui *ui, unsigned int node,
 			if (flex_row || cs.float_left ||
 			    cs.display == BR_DISPLAY_INLINE ||
 			    cs.display == BR_DISPLAY_INLINE_BLOCK) {
-				line_w += cw;
+				IW_ADD(cw);
 			} else {
 				if (line_w > max_w)
 					max_w = line_w;
@@ -12216,18 +12245,19 @@ static void layout_grid_auto(struct lay *l, unsigned int parent,
 /* Column widths are the widest cell in each column across every row, so all
  * rows line up.  The table model is still deliberately basic: no colspan,
  * border-collapse or percentage columns. */
-static void table_columns(struct lay *l, unsigned int table,
-			  const struct br_style *pst, int avail,
-			  int *raw, int maxcols, int *out_cols,
-			  int *out_total)
+static void table_columns_compute(struct lay *l, unsigned int table,
+				  const struct br_style *pst, int avail,
+				  int *raw, int maxcols, int *out_cols,
+				  int *out_total)
 {
 	unsigned int r, c;
 	int cols = 0, total = 0, fixed_sum = 0, free_raw = 0, free_cols = 0;
-	int fixed[12];
+	int fixed[12], rmin[12];
 
 	for (c = 0; c < (unsigned int)maxcols; c++) {
 		raw[c] = 0;
 		fixed[c] = 0;
+		rmin[c] = 0;
 	}
 	/* Intrinsic widths of single-column cells. */
 	for (r = doc.nodes[table].first; r; r = doc.nodes[r].next) {
@@ -12262,8 +12292,20 @@ static void table_columns(struct lay *l, unsigned int table,
 			if (w < 24)
 				w = 24;
 			if (span == 1) {
+				int wm;
+
 				if (w > raw[col])
 					raw[col] = w;
+				/* min-content: the widest word/image */
+				iw_min = 1;
+				wm = intrinsic_width(l->ui, c, &cs, 0, avail);
+				iw_min = 0;
+				wm += w - intrinsic_width(l->ui, c, &cs, 0,
+							  avail);
+				if (wm > w)
+					wm = w;
+				if (wm > rmin[col])
+					rmin[col] = wm;
 			}
 			if (col + span > cols)
 				cols = col + span;
@@ -12376,6 +12418,29 @@ static void table_columns(struct lay *l, unsigned int table,
 		total = 0;
 		for (i = 0; i < cols; i++)
 			total += raw[i];
+	} else if (total > avail && !fixed_sum) {
+		/* CSS auto table layout: the one-line widths do not fit, so
+		 * every column gets its min-content width plus a share of the
+		 * rest in proportion to (max - min).  A Hacker News comment
+		 * cell (a paragraph measured as one line) used to keep its
+		 * whole one-line width and push the table off the page. */
+		int i, smin = 0, sdiff = 0;
+
+		for (i = 0; i < cols; i++) {
+			if (rmin[i] < 8)
+				rmin[i] = 8;
+			if (rmin[i] > raw[i])
+				rmin[i] = raw[i];
+			smin += rmin[i];
+			sdiff += raw[i] - rmin[i];
+		}
+		for (i = 0; i < cols; i++)
+			raw[i] = rmin[i] + (smin < avail && sdiff > 0 ?
+				 (int)((long long)(avail - smin) *
+				       (raw[i] - rmin[i]) / sdiff) : 0);
+		total = 0;
+		for (i = 0; i < cols; i++)
+			total += raw[i];
 	} else if (total < avail && total > 0) {
 		int i;
 
@@ -12389,6 +12454,56 @@ static void table_columns(struct lay *l, unsigned int table,
 	*out_total = total;
 }
 
+/* Every row of a fallback table asks for the same column widths, and each
+ * computation measures the text of every cell of every row: a Hacker News
+ * comment page (one row per comment) spent ~1.7 s per layout pass in this
+ * O(rows^2) walk.  The result is cached per table, width and layout pass
+ * (inline_box_pass_id changes with every measure/render pass, so a DOM or
+ * style change is never served stale widths). */
+#define TCOL_CACHE 8      /* nested tables: one slot per nesting level */
+static struct {
+	unsigned int table, pass;
+	int avail, maxcols, cols, total;
+	int raw[12];
+	int valid;
+} tcol_cache[TCOL_CACHE];
+static unsigned int tcol_next;
+
+static void table_columns(struct lay *l, unsigned int table,
+			  const struct br_style *pst, int avail,
+			  int *raw, int maxcols, int *out_cols,
+			  int *out_total)
+{
+	int i, k;
+
+	for (k = 0; k < TCOL_CACHE && maxcols <= 12; k++) {
+		if (!tcol_cache[k].valid || tcol_cache[k].table != table ||
+		    tcol_cache[k].pass != inline_box_pass_id ||
+		    tcol_cache[k].avail != avail ||
+		    tcol_cache[k].maxcols != maxcols)
+			continue;
+		for (i = 0; i < maxcols; i++)
+			raw[i] = tcol_cache[k].raw[i];
+		*out_cols = tcol_cache[k].cols;
+		*out_total = tcol_cache[k].total;
+		return;
+	}
+	table_columns_compute(l, table, pst, avail, raw, maxcols, out_cols,
+			      out_total);
+	if (maxcols > 12)
+		return;
+	k = (int)(tcol_next++ % TCOL_CACHE);
+	tcol_cache[k].table = table;
+	tcol_cache[k].pass = inline_box_pass_id;
+	tcol_cache[k].avail = avail;
+	tcol_cache[k].maxcols = maxcols;
+	tcol_cache[k].cols = *out_cols;
+	tcol_cache[k].total = *out_total;
+	for (i = 0; i < maxcols; i++)
+		tcol_cache[k].raw[i] = raw[i];
+	tcol_cache[k].valid = 1;
+}
+
 static void layout_table_row(struct lay *l, unsigned int row,
 			     const struct br_style *pst, int depth,
 			     unsigned short link)
@@ -12460,8 +12575,12 @@ static void layout_table_row(struct lay *l, unsigned int row,
 		}
 		/* A one-column table still has to fill its own width; the
 		 * intrinsic fallback above otherwise leaves the cell at its
-		 * text width (HN's outer table and nested story table). */
-		if (total > 0 && total < avail) {
+		 * text width (HN's outer table and nested story table).  The
+		 * same holds the other way: cells whose one-line text is
+		 * wider than the table are scaled down to it, or a HN
+		 * comment page's one-column box became 5000 px wide and
+		 * every comment ran off the page. */
+		if (total > 0 && total != avail) {
 			int c;
 
 			for (c = 0; c < ncell; c++)
@@ -12570,6 +12689,7 @@ static void layout_table(struct lay *l, unsigned int table,
 	unsigned int rows[TBL_MAX_ROWS];
 	int rowh[TBL_MAX_ROWS], rowy[TBL_MAX_ROWS];
 	int raw[TBL_MAX_COLS], prefix[TBL_MAX_COLS + 1], fixed[TBL_MAX_COLS];
+	int rmin[TBL_MAX_COLS];
 	int nrows = 0, ncells = 0, cols = 0, total = 0, fixed_sum = 0;
 	int free_raw = 0, free_cols = 0;
 	int table_left = l->left, table_right = l->right;
@@ -12655,6 +12775,7 @@ static void layout_table(struct lay *l, unsigned int table,
 	for (i = 0; i < cols; i++) {
 		raw[i] = 0;
 		fixed[i] = 0;
+		rmin[i] = 0;
 	}
 	/* Intrinsic widths of single-column cells. */
 	for (i = 0; i < ncells; i++) {
@@ -12673,10 +12794,22 @@ static void layout_table(struct lay *l, unsigned int table,
 		if (w < 24)
 			w = 24;
 		if (tbl_cells[i].colspan == 1) {
-			int col = tbl_cells[i].col;
+			int col = tbl_cells[i].col, wm;
 
 			if (w > raw[col])
 				raw[col] = w;
+			/* min-content: the widest word/image, plus the same
+			 * padding/borders as w */
+			iw_min = 1;
+			wm = intrinsic_width(l->ui, tbl_cells[i].node, &cs, 0,
+					     avail);
+			iw_min = 0;
+			wm += w - intrinsic_width(l->ui, tbl_cells[i].node,
+						  &cs, 0, avail);
+			if (wm > w)
+				wm = w;
+			if (wm > rmin[col])
+				rmin[col] = wm;
 		}
 	}
 	/* A spanning cell only needs the sum of its columns to be large
@@ -12746,6 +12879,25 @@ static void layout_table(struct lay *l, unsigned int table,
 				if (!fixed[i])
 					raw[i] = free_avail / free_cols;
 		}
+	} else if (total > avail && !fixed_sum) {
+		/* CSS auto table layout, as in table_columns_compute(): the
+		 * min-content widths plus the rest in proportion to
+		 * (max - min), so a long paragraph wraps instead of pushing
+		 * the table off the page. */
+		int smin = 0, sdiff = 0;
+
+		for (i = 0; i < cols; i++) {
+			if (rmin[i] < 8)
+				rmin[i] = 8;
+			if (rmin[i] > raw[i])
+				rmin[i] = raw[i];
+			smin += rmin[i];
+			sdiff += raw[i] - rmin[i];
+		}
+		for (i = 0; i < cols; i++)
+			raw[i] = rmin[i] + (smin < avail && sdiff > 0 ?
+				 (int)((long long)(avail - smin) *
+				       (raw[i] - rmin[i]) / sdiff) : 0);
 	} else if (total < avail && total > 0) {
 		for (i = 0; i < cols; i++)
 			raw[i] = raw[i] * avail / total;
@@ -13223,6 +13375,13 @@ static void layout_children(struct lay *l, unsigned int parent,
 			continue;
 		}
 		if (nd->tag == BR_TAG_BR) {
+			/* A <br> on an empty line is itself one empty line
+			 * (<br><br> leaves a blank line; HN's comment header
+			 * has margin-bottom: -10px and relies on the <br>
+			 * after it to keep clear of the text). */
+			if (l->nruns == 0)
+				l->y += (pst->line_h_px ? pst->line_h_px :
+					 pst->font_px + pst->font_px / 5) + 2;
 			flush_line(l);
 			n = nd->next;
 			continue;
@@ -14101,14 +14260,16 @@ static void draw_page(struct ngui_rect page)
 		 * (Infima's light theme: `--ifm-background-color:
 		 * transparent` on html, #1c1e21 text): the page expects the
 		 * white canvas of a normal browser, and dark text on the
-		 * dark default canvas is unreadable. */
+		 * dark default canvas is unreadable.  Mid-grey counts too:
+		 * Hacker News sets #828282 body text on a white page;
+		 * text meant for a dark background is light (> ~200). */
 		if (!bg_found && (body || root) && bs.color != ui.theme.text) {
 			unsigned int c = bs.color;
 			unsigned int lum = ((c >> 11) & 31) * 8 * 299 +
 					   ((c >> 5) & 63) * 4 * 587 +
 					   (c & 31) * 8 * 114;
 
-			if (lum < 100 * 1000)
+			if (lum < 150 * 1000)
 				page_bg = 0xFFFF;
 		}
 	}

+ 5 - 0
user/apps/browser/browser_html.c

@@ -3255,6 +3255,11 @@ static int parse_font_size(const char *s, unsigned int len,
 	} else if (i + 2 <= len && ci_eq_n(s + i, "em", 2)) {
 		*raw = (unsigned short)v100;
 		*unit = 2;
+	} else if (i + 2 <= len && ci_eq_n(s + i, "pt", 2)) {
+		/* 1pt = 4/3 px: Hacker News sets 10pt/7pt, which used to be
+		 * read as 10/7 px. */
+		*raw = (unsigned short)((v100 * 4 / 3 + 50) / 100);
+		*unit = 1;
 	} else if (i < len && s[i] == '%') {
 		/* Keep hundredths: 62.5% is a common root size and truncating
 		 * it to 62% makes every rem 1px too small. */

+ 10 - 0
user/apps/browser/js_browser.c

@@ -2207,6 +2207,16 @@ static int node_has(js_State *state, void *p, const char *name)
 			return 1;
 		}
 	}
+	/* <canvas>: getContext() and friends from the prelude
+	 * (__nb_canvas); there is no drawing backend. */
+	if (n->type == BR_NODE_ELEM && n->tag == BR_TAG_CANVAS &&
+	    (!strcmp(name, "getContext") || !strcmp(name, "toDataURL") ||
+	     !strcmp(name, "toBlob") ||
+	     !strcmp(name, "transferControlToOffscreen"))) {
+		js_getglobal(state, "__nb_canvas");
+		js_getproperty(state, -1, name);
+		return 1;
+	}
 	/* <video>/<audio> are placeholder boxes: give them the
 	 * HTMLMediaElement methods from the prelude (__nb_media) and report a
 	 * paused, never-loaded element.  The global object stays below the

+ 11 - 0
user/apps/browser/js_prelude.js

@@ -1061,6 +1061,17 @@ domClass("HTMLAudioElement", tag("AUDIO"));
  * media elements only (so `"play" in div` stays false).  play() resolves
  * without playing: pages call it without a catch on scroll, and a
  * rejection would only add an "Uncaught" line per element. */
+/* <canvas> has no drawing backend: getContext() answers null for every
+ * context type, like a browser with 2D/WebGL disabled, so libraries take
+ * their "no canvas/WebGL" path (MapLibre reports "Failed to initialize
+ * WebGL") instead of calling an undefined method. */
+def("__nb_canvas", {
+	getContext: function () { return null; },
+	toDataURL: function () { return "data:,"; },
+	toBlob: function (cb) { if (typeof cb === "function") setTimeout(function () { cb(null); }, 0); },
+	transferControlToOffscreen: function () { throw new DOMException("not supported", "NotSupportedError"); }
+});
+
 def("__nb_media", {
 	play: function () { return Promise.resolve(); },
 	pause: function () {},

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 52 - 1077
user/apps/netmenu/ucmd_netmenu.c


+ 2929 - 0
user/apps/settings/ucmd_settings.c

@@ -0,0 +1,2929 @@
+/* settings: the real Settings window.
+ *
+ * A normal titled canvas window with a section sidebar on the left and the
+ * selected page on the right:
+ *
+ *   Network     NIC selection, DHCP, Wi-Fi scan/join/saved networks and the
+ *               current connection details
+ *   Power       P-state mode, panel brightness and AC/battery state
+ *   Date & Time CMOS clock editor and SNTP sync
+ *   Appearance  desktop colour and a wallpaper image picker
+ *   Windows     window shadows, edge snapping and drag resistance
+ *   About       version, screen, memory and temperature
+ *
+ * The top-bar control-center popover's pills call SYS_WM_OPEN_SETTINGS, but
+ * a running Settings window is reused: the WM focuses it and writes the
+ * requested section to WM_SETTINGS_REQUEST, which this app polls.  Window
+ * preferences are pushed through SYS_WM_PREFS and persisted in
+ * /data/SETTINGS.CFG (or /share/settings.cfg before the data volume is
+ * mounted), so the ring-3 WM applies them immediately and after a restart. */
+
+#include <stdlib.h>
+#include <string.h>
+
+#include "ucmd_lib.h"
+#include "ngui.h"
+#include "img.h"
+#include "img_file.h"
+#include "wifi_store.h"
+#include "version.h"
+
+#define MAX_DEVS 8
+#define MAX_BSS  32
+
+#define SIDEBAR_W      190
+#define SIDEBAR_MIN_W  154
+#define NAV_ROW_H      44
+#define NAV_GAP        4
+#define HEADER_H       54
+#define FOOTER_H       28
+#define SECTION_H      28
+#define GAP            10
+#define CARD_H         64
+#define DEV_ROW_H      42
+#define BSS_ROW_H      42
+#define INFO_ROW_H     30
+#define SAVED_ROW_H    42
+#define STATUS_MS      6000
+
+#define PICK_MAX       96
+#define PICK_ROW_H     38
+#define PICK_PATH_MAX  256
+#define WALL_FILE_CAP  (4u * 1024u * 1024u)
+#define WALL_HEAP_CAP  (24u * 1024u * 1024u)
+
+#define ID_NAV_BASE     10
+#define ID_NET_REFRESH  100
+#define ID_NET_SCAN     101
+#define ID_NET_DISCONNECT 102
+#define ID_NET_SAVED    103
+#define ID_NET_SAVED_BACK 104
+#define ID_NET_PASS_INPUT 105
+#define ID_NET_PASS_OK  106
+#define ID_NET_PASS_CANCEL 107
+#define ID_NET_CONN_CANCEL 108
+#define ID_DEV_BASE     120
+#define ID_BSS_BASE     140
+#define ID_INFO_BASE    180
+#define ID_SAVED_ROW_BASE 200
+#define ID_SAVED_FORGET_BASE 230
+#define ID_POWER_MODE_BASE 300
+#define ID_BRIGHTNESS   310
+#define ID_DATE_FIELD   400
+#define ID_TIME_FIELD   401
+#define ID_NTP_FIELD    402
+#define ID_DATE_SET     403
+#define ID_DATE_NOW     404
+#define ID_DATE_NTP     405
+#define ID_BG_BASE      500
+#define ID_WALL_CHOOSE  540
+#define ID_WALL_REMOVE  541
+#define ID_PICK_UP      550
+#define ID_PICK_CANCEL  551
+#define ID_PICK_ROW_BASE 600
+#define ID_WIN_SHADOW   750
+#define ID_WIN_SNAP     751
+#define ID_WIN_RESIST   752
+
+enum {
+	SEC_NETWORK,
+	SEC_POWER,
+	SEC_DATETIME,
+	SEC_APPEARANCE,
+	SEC_WINDOWS,
+	SEC_ABOUT,
+	SEC_COUNT
+};
+
+enum {
+	NET_MAIN,
+	NET_PASS,
+	NET_CONNECT,
+	NET_SAVED
+};
+
+enum {
+	A_NONE = 0,
+	A_NAV,
+	A_REFRESH,
+	A_SCAN,
+	A_DISCONNECT,
+	A_DEV,
+	A_BSS,
+	A_SAVED,
+	A_SAVED_BACK,
+	A_FORGET,
+	A_PASS_OK,
+	A_PASS_CANCEL,
+	A_CONN_CANCEL,
+	A_POWER,
+	A_DATE_SET,
+	A_DATE_NOW,
+	A_DATE_NTP,
+	A_BG,
+	A_WALL_CHOOSE,
+	A_WALL_REMOVE,
+	A_PICK_UP,
+	A_PICK_CANCEL,
+	A_PICK_ROW,
+	A_WIN_SHADOW,
+	A_WIN_SNAP,
+	A_WIN_RESIST
+};
+
+struct section_info {
+	const char *label;
+	const char *subtitle;
+	const char *arg;
+};
+
+static const struct section_info sections[SEC_COUNT] = {
+	{ "Network",     "Devices and Wi-Fi",      "network" },
+	{ "Power",       "Mode and brightness",    "power" },
+	{ "Date & Time", "Clock and time sync",    "time" },
+	{ "Appearance",  "Desktop background",     "appearance" },
+	{ "Windows",     "Shadows and snapping",   "windows" },
+	{ "About",       "System information",     "about" }
+};
+
+struct bg_choice {
+	const char *name;
+	unsigned int rgb;
+};
+
+static const struct bg_choice bg_choices[] = {
+	{ "Midnight",  0x202030u },
+	{ "Deep blue", 0x152238u },
+	{ "Forest",    0x18281Cu },
+	{ "Plum",      0x2A1A2Eu },
+	{ "Cocoa",     0x2C2118u },
+	{ "Graphite",  0x222428u },
+	{ "Slate",     0x23303Au },
+	{ "Wine",      0x301A22u }
+};
+#define NBG ((int)(sizeof(bg_choices) / sizeof(bg_choices[0])))
+
+static struct ngui ui;
+static int cur_section = SEC_NETWORK;
+static int quit;
+static int pending_action;
+static int pending_arg;
+static struct ngui_scroll content_scroll;
+static struct ngui_slider brightness_slider;
+static char status[160];
+static int status_error;
+static unsigned int status_until;
+static unsigned int last_status_ms;
+static unsigned int last_request_ms;
+
+static struct wm_prefs prefs;
+
+/* Network state. */
+static struct sys_netdev devs[MAX_DEVS];
+static int ndev;
+static int devs_loaded;
+static struct sys_wifi_bss bss[MAX_BSS];
+static int nbss;
+static struct wifi_cfg saved[WIFI_CFG_MAX];
+static int nsaved;
+static struct sys_wifi_status wst;
+static struct sys_netinfo net;
+static int net_present;
+static int wifi_checked;
+static int wifi_present;
+static int net_view = NET_MAIN;
+static int sel_bss = -1;
+static char sel_ssid[33];
+static int scanning;
+static unsigned int scan_start;
+static int connect_pid = -1;
+static int connect_tty;
+static unsigned int connect_start;
+static char conn_log[2048];
+static unsigned int conn_log_len;
+static struct ngui_input pass_in;
+
+/* Power state. */
+static int brightness = -1;
+static int cpufreq_mode = -1;
+static struct sys_powerinfo powerinfo;
+static int power_ok;
+
+/* Clock state. */
+static struct sys_datetime now;
+static int now_ok;
+static int date_loaded;
+static struct ngui_input date_in;
+static struct ngui_input time_in;
+static struct ngui_input ntp_in;
+
+/* Appearance state. */
+static int wallpaper_present;
+static char wallpaper_source[32];
+static int picker_mode;
+static char pick_path[PICK_PATH_MAX];
+static char pick_names[PICK_MAX][64];
+static unsigned int pick_sizes[PICK_MAX];
+static unsigned char pick_dirs[PICK_MAX];
+static int pick_count;
+static struct ngui_scroll picker_scroll;
+
+static unsigned int s_len(const char *s)
+{
+	unsigned int n = 0;
+
+	while (s && s[n])
+		n++;
+	return n;
+}
+
+static void settings_draw_frame(void);
+static void draw_picker(struct ngui_rect area, int *yy);
+static void set_wallpaper_file(const char *path);
+
+static int s_eq(const char *a, const char *b)
+{
+	while (*a && *a == *b) {
+		a++;
+		b++;
+	}
+	return *a == *b;
+}
+
+static void s_copy(char *d, const char *s, unsigned int cap)
+{
+	unsigned int i = 0;
+
+	if (!cap)
+		return;
+	while (s && s[i] && i + 1 < cap) {
+		d[i] = s[i];
+		i++;
+	}
+	d[i] = '\0';
+}
+
+static char *s_put(char *p, const char *s)
+{
+	while (s && *s)
+		*p++ = *s++;
+	return p;
+}
+
+static char *s_put_dec(char *p, unsigned int v)
+{
+	char b[10];
+	unsigned int n = 0;
+
+	do {
+		b[n++] = (char)('0' + v % 10);
+		v /= 10;
+	} while (v);
+	while (n)
+		*p++ = b[--n];
+	return p;
+}
+
+static char *s_put_2(char *p, unsigned int v)
+{
+	*p++ = (char)('0' + (v / 10) % 10);
+	*p++ = (char)('0' + v % 10);
+	return p;
+}
+
+static void set_status(const char *msg, int err)
+{
+	unsigned int i;
+
+	for (i = 0; msg && msg[i] && i + 1 < sizeof(status); i++)
+		status[i] = msg[i];
+	status[i] = '\0';
+	status_error = err;
+	status_until = msg && msg[0] ? u_ticks_ms() + STATUS_MS : 0;
+	ngui_invalidate(&ui);
+}
+
+static void request_action(int action, int arg)
+{
+	if (!pending_action) {
+		pending_action = action;
+		pending_arg = arg;
+	}
+}
+
+/* Paint the current state before a blocking action (DHCP, a WiFi scan or an
+ * NTP request), so the message and the pressed control are visible. */
+static void paint_current(void)
+{
+	if (ngui_begin(&ui)) {
+		settings_draw_frame();
+		ngui_end(&ui);
+	}
+}
+
+static int section_from_name(const char *name)
+{
+	int i;
+
+	if (!name || !name[0])
+		return SEC_NETWORK;
+	for (i = 0; i < SEC_COUNT; i++)
+		if (s_eq(name, sections[i].arg))
+			return i;
+	return SEC_NETWORK;
+}
+
+/* ------------------------------------------------------------------ */
+/* Window-manager preferences                                          */
+
+static void prefs_defaults(void)
+{
+	memset(&prefs, 0, sizeof(prefs));
+	prefs.shadow = 1;
+	prefs.snap = 1;
+	prefs.resist = 1;
+	prefs.bg_rgb = WM_DEFAULT_BG_RGB;
+}
+
+static int prefs_file_magic_ok(const struct wm_prefs_file *f)
+{
+	unsigned int i;
+
+	for (i = 0; i < sizeof(f->magic); i++)
+		if (f->magic[i] != WM_PREFS_MAGIC[i])
+			return 0;
+	return 1;
+}
+
+static int prefs_file_load(void)
+{
+	/* A FAT read may write a final partial sector past the requested
+	 * length, so keep a sector of slack around the header. */
+	unsigned char buf[sizeof(struct wm_prefs_file) + 512];
+	struct wm_prefs_file *f = (struct wm_prefs_file *)buf;
+	const char *paths[2] = { WM_PREFS_DATA, WM_PREFS_SHARE };
+	int i;
+
+	for (i = 0; i < 2; i++) {
+		int n = u_syscall3(SYS_READ_FILE, (int)paths[i], (int)buf,
+				   (int)sizeof(*f));
+
+		if (n < (int)sizeof(*f) || !prefs_file_magic_ok(f) ||
+		    f->version != WM_PREFS_VERSION)
+			continue;
+		prefs = f->prefs;
+		prefs.shadow = prefs.shadow ? 1u : 0u;
+		prefs.snap = prefs.snap ? 1u : 0u;
+		prefs.resist = prefs.resist ? 1u : 0u;
+		prefs.bg_rgb &= 0x00FFFFFFu;
+		memset(prefs.reserved, 0, sizeof(prefs.reserved));
+		return 0;
+	}
+	return -1;
+}
+
+static int prefs_file_save(void)
+{
+	struct wm_prefs_file f;
+	struct sys_stat st;
+	const char *path = WM_PREFS_SHARE;
+
+	memset(&f, 0, sizeof(f));
+	memcpy(f.magic, WM_PREFS_MAGIC, sizeof(f.magic));
+	f.version = WM_PREFS_VERSION;
+	f.prefs = prefs;
+	if (u_stat("/data", &st) == 0 && st.is_dir)
+		path = WM_PREFS_DATA;
+	return u_syscall3(SYS_WRITE_FILE, (int)path, (int)&f, (int)sizeof(f));
+}
+
+static void commit_prefs(const char *ok_msg)
+{
+	if (u_wm_set_prefs(&prefs) != 0) {
+		set_status("The window manager refused the settings", 1);
+		return;
+	}
+	if (prefs_file_save() < 0)
+		set_status("Applied, but the settings file could not be saved", 1);
+	else if (ok_msg && ok_msg[0])
+		set_status(ok_msg, 0);
+	else
+		set_status("Settings saved", 0);
+}
+
+/* ------------------------------------------------------------------ */
+/* Small drawing helpers                                               */
+
+static unsigned short rgb565(unsigned int rgb)
+{
+	return (unsigned short)((((rgb >> 16) & 0xFF) >> 3) << 11 |
+				(((rgb >> 8) & 0xFF) >> 2) << 5 |
+				((rgb & 0xFF) >> 3));
+}
+
+static void format_size(char *b, unsigned int bytes)
+{
+	char *p = b;
+
+	if (bytes >= 1024u * 1024u) {
+		p = s_put_dec(p, bytes / (1024u * 1024u));
+		p = s_put(p, " MB");
+	} else if (bytes >= 1024u) {
+		p = s_put_dec(p, (bytes + 1023u) / 1024u);
+		p = s_put(p, " KB");
+	} else {
+		p = s_put_dec(p, bytes);
+		p = s_put(p, " B");
+	}
+	*p = '\0';
+}
+
+/* One clickable settings row: an optional colour swatch, a title, a dim
+ * subtitle and a right-aligned value.  Mirrors the ngui list-row press /
+ * release semantics so clicks agree with the rest of the toolkit. */
+static int settings_row(unsigned int id, struct ngui_rect r,
+			const char *title, const char *subtitle,
+			const char *trailing, int selected, int swatch_rgb)
+{
+	int hot = ui.inside && ngui_rect_contains(&r, ui.mouse_x, ui.mouse_y);
+	int press_hot = ui.pressed &&
+		ngui_rect_contains(&r, ui.press_x, ui.press_y);
+	int release_hot = ngui_rect_contains(&r, ui.release_x, ui.release_y);
+	int fired = 0;
+	int left = r.x + 10, right = r.x + r.w - 10;
+	int title_h, block_h, ty;
+	unsigned short bg = 0, fg, sub_fg, trail_fg;
+
+	if (press_hot)
+		ui.active = id;
+	if (ui.pressed && ui.released && press_hot && release_hot)
+		fired = 1;
+	if (ui.released && ui.active == id) {
+		if (release_hot)
+			fired = 1;
+		ui.active = 0;
+	}
+
+	if (selected)
+		bg = ui.theme.selection;
+	else if (hot || ui.active == id)
+		bg = ui.theme.panel_alt;
+	if (bg)
+		ngui_fill_round_rect(&ui, r, NGUI_RADIUS, NGUI_RADIUS,
+				     NGUI_RADIUS, NGUI_RADIUS, bg);
+
+	if (swatch_rgb >= 0) {
+		struct ngui_rect sw = { left, r.y + (r.h - 16) / 2, 16, 16 };
+
+		ngui_fill_round_rect(&ui, sw, 4, 4, 4, 4,
+				     rgb565((unsigned int)swatch_rgb));
+		ngui_frame_round(&ui, sw, 4, 4, 4, 4, 1, ui.theme.border);
+		left += 26;
+	}
+
+	fg = ui.theme.text;
+	sub_fg = selected ? ui.theme.text : ui.theme.text_dim;
+	trail_fg = selected ? ui.theme.text : ui.theme.text_dim;
+	if (trailing && trailing[0]) {
+		int tw = (int)ngui_text_width_ui(&ui, trailing);
+
+		right -= tw + 8;
+		ngui_text_utf8(&ui, right + 8, r.y + (r.h - 16) / 2,
+			       trailing, trail_fg);
+	}
+	if (right <= left)
+		return fired;
+
+	title_h = ngui_text_line_height(&ui, ui.font_px, 0);
+	block_h = subtitle && subtitle[0] ? title_h * 2 - 2 : title_h;
+	ty = r.y + (r.h - block_h) / 2;
+	if (ty < r.y)
+		ty = r.y;
+	ngui_push_clip(&ui, (struct ngui_rect){ left, r.y,
+					       right - left, r.h });
+	ngui_text_utf8(&ui, left, ty, title, fg);
+	if (subtitle && subtitle[0])
+		ngui_text_utf8(&ui, left, ty + title_h - 2, subtitle, sub_fg);
+	ngui_pop_clip(&ui);
+	if (hot) {
+		ui.hot = id;
+		ngui_set_cursor(&ui, CURSOR_POINTER);
+	}
+	return fired;
+}
+
+static int info_row(struct ngui_rect area, int *y, const char *label,
+		    const char *value)
+{
+	struct ngui_rect r = { area.x, *y, area.w, INFO_ROW_H };
+	int th = ngui_text_line_height(&ui, ui.font_px, 0);
+
+	ngui_text_utf8(&ui, r.x + 10, r.y + (r.h - th) / 2, label,
+		       ui.theme.text_dim);
+	ngui_text_utf8(&ui, r.x + r.w / 2, r.y + (r.h - th) / 2, value,
+		       ui.theme.text);
+	*y += INFO_ROW_H;
+	return 0;
+}
+
+/* ------------------------------------------------------------------ */
+/* Network                                                             */
+
+static void drain_tty(void)
+{
+	char buf[256];
+	int n;
+
+	if (connect_tty <= 0)
+		return;
+	while ((n = u_tty_read(connect_tty, buf, sizeof(buf))) > 0) {
+		int i;
+
+		for (i = 0; i < n; i++) {
+			if (conn_log_len + 1 >= sizeof(conn_log)) {
+				unsigned int half = sizeof(conn_log) / 2;
+				unsigned int j;
+
+				for (j = 0; j < half; j++)
+					conn_log[j] = conn_log[conn_log_len -
+								 half + j];
+				conn_log_len = half;
+			}
+			conn_log[conn_log_len++] = buf[i];
+		}
+		conn_log[conn_log_len] = '\0';
+		ngui_invalidate(&ui);
+	}
+}
+
+static void load_saved(void)
+{
+	int n = wifi_store_load(saved, WIFI_CFG_MAX);
+
+	if (n > WIFI_CFG_MAX)
+		n = WIFI_CFG_MAX;
+	nsaved = n > 0 ? n : 0;
+}
+
+static int bss_saved(const struct sys_wifi_bss *b)
+{
+	return wifi_store_find(saved, nsaved, b->ssid, b->ssid_len);
+}
+
+static const char *security_name(unsigned int s)
+{
+	return s == SYS_WIFI_SEC_OPEN ? "open" :
+	       s == SYS_WIFI_SEC_PSK ? "WPA2" : "unsupported";
+}
+
+static int rssi_bars(int rssi)
+{
+	if (rssi >= -55)
+		return 4;
+	if (rssi >= -65)
+		return 3;
+	if (rssi >= -75)
+		return 2;
+	return 1;
+}
+
+static int bss_is_active(const struct sys_wifi_bss *b)
+{
+	unsigned int i;
+
+	if (wst.state < SYS_WIFI_ST_ASSOC)
+		return 0;
+	for (i = 0; i < 6; i++)
+		if (wst.bssid[i] != b->bssid[i])
+			return 0;
+	return 1;
+}
+
+static void load_status(void)
+{
+	int i;
+
+	net_present = (u_net_info(&net) == 1 && net.present);
+	if (!wifi_checked || wifi_present) {
+		if (u_wifi(SYS_WIFI_STATUS, (int)&wst, 0) == 0) {
+			wifi_checked = 1;
+			wifi_present = wst.present != 0;
+		} else {
+			wifi_checked = 1;
+			wifi_present = 0;
+		}
+	}
+	for (i = 0; i < ndev; i++) {
+		devs[i].active = (net_present && s_eq(net.name, devs[i].name)) ?
+				 1u : 0u;
+		if (devs[i].active)
+			devs[i].link = net.link;
+	}
+	power_ok = (u_power_info(&powerinfo, 0) == 0);
+	now_ok = (u_rtc_get(&now) == 0);
+	brightness = u_backlight_get();
+	cpufreq_mode = u_cpufreq_get();
+}
+
+static void load_devices(void)
+{
+	int n = u_net_devlist(devs, MAX_DEVS);
+
+	if (n > MAX_DEVS)
+		n = MAX_DEVS;
+	ndev = n > 0 ? n : 0;
+	devs_loaded = 1;
+	load_status();
+}
+
+static void sort_bss(void)
+{
+	int i, j;
+
+	for (i = 1; i < nbss; i++)
+		for (j = i; j > 0 && bss[j].rssi > bss[j - 1].rssi; j--) {
+			struct sys_wifi_bss t = bss[j];
+
+			bss[j] = bss[j - 1];
+			bss[j - 1] = t;
+		}
+}
+
+static int same_ssid(const struct sys_wifi_bss *a,
+		     const struct sys_wifi_bss *b)
+{
+	unsigned int i;
+
+	if (a->ssid_len == 0 || a->ssid_len != b->ssid_len)
+		return 0;
+	for (i = 0; i < a->ssid_len; i++)
+		if (a->ssid[i] != b->ssid[i])
+			return 0;
+	return 1;
+}
+
+static void filter_bss(void)
+{
+	int i, j, out = 0;
+
+	for (i = 0; i < nbss; i++) {
+		int dup = -1;
+
+		if (bss[i].ssid_len == 0)
+			continue;
+		for (j = 0; j < out; j++)
+			if (bss[i].security == bss[j].security &&
+			    same_ssid(&bss[i], &bss[j])) {
+				dup = j;
+				break;
+			}
+		if (dup < 0) {
+			bss[out++] = bss[i];
+		} else if (bss_is_active(&bss[i]) &&
+			   !bss_is_active(&bss[dup])) {
+			bss[dup] = bss[i];
+		}
+	}
+	nbss = out;
+}
+
+static void ssid_name(const struct sys_wifi_bss *b, char out[33])
+{
+	unsigned int i, n = b->ssid_len;
+
+	if (n > 32)
+		n = 32;
+	for (i = 0; i < n; i++)
+		out[i] = (char)b->ssid[i];
+	out[n] = '\0';
+	if (!n) {
+		s_copy(out, "(hidden)", 33);
+	}
+}
+
+static void cfg_ssid_name(const struct wifi_cfg *c, char out[33])
+{
+	unsigned int i, n = c->ssid_len;
+
+	if (n > 32)
+		n = 32;
+	for (i = 0; i < n; i++)
+		out[i] = (char)c->ssid[i];
+	out[n] = '\0';
+}
+
+static void start_scan(void)
+{
+	int r;
+
+	if (scanning || !wifi_present)
+		return;
+	set_status("Scanning for WiFi networks...", 0);
+	paint_current();
+	r = u_wifi(SYS_WIFI_SCAN, 0, 0);
+	if (r < 0) {
+		char m[64], *p;
+
+		u_wifi(SYS_WIFI_STATUS, (int)&wst, 0);
+		p = s_put(m, "WiFi: ");
+		p = s_put(p, wst.detail[0] ? wst.detail : "scan failed");
+		*p = '\0';
+		set_status(m, 1);
+		return;
+	}
+	scanning = 1;
+	scan_start = u_ticks_ms();
+	nbss = 0;
+	content_scroll.offset = 0;
+	ngui_invalidate(&ui);
+}
+
+static void poll_scan(void)
+{
+	int n;
+
+	if (!scanning)
+		return;
+	n = u_wifi(SYS_WIFI_RESULTS, (int)bss, MAX_BSS);
+	if (n == -2) {
+		if (u_ticks_ms() - scan_start > 15000) {
+			scanning = 0;
+			set_status("WiFi scan timed out", 1);
+		}
+		return;
+	}
+	scanning = 0;
+	if (n < 0) {
+		set_status("WiFi scan failed", 1);
+		return;
+	}
+	if (n > MAX_BSS)
+		n = MAX_BSS;
+	nbss = n;
+	sort_bss();
+	filter_bss();
+	if (nbss == 0)
+		set_status("No WiFi networks found", 1);
+	else
+		set_status("WiFi scan complete", 0);
+	ngui_invalidate(&ui);
+}
+
+static int write_wifi_cfg(const struct sys_wifi_bss *b, const char *pass)
+{
+	struct wifi_cfg cfg;
+	unsigned int i, n = s_len(pass);
+	int r;
+
+	memset(&cfg, 0, sizeof(cfg));
+	cfg.magic = WIFI_CFG_MAGIC;
+	cfg.ssid_len = b->ssid_len;
+	cfg.pass_len = (unsigned char)(n > 64 ? 64 : n);
+	for (i = 0; i < 6; i++)
+		cfg.bssid[i] = b->bssid[i];
+	for (i = 0; i < b->ssid_len && i < 32; i++)
+		cfg.ssid[i] = b->ssid[i];
+	for (i = 0; i < cfg.pass_len; i++)
+		cfg.pass[i] = pass[i];
+	r = u_syscall3(SYS_WRITE_FILE, (int)WIFI_CFG_STAGED,
+		       (int)&cfg, (int)sizeof(cfg));
+	memset(&cfg, 0, sizeof(cfg));
+	return r;
+}
+
+static void start_connect(const char *pass)
+{
+	struct sys_wifi_bss *b;
+	char msg[96], *p;
+	int pid;
+
+	if (sel_bss < 0 || sel_bss >= nbss)
+		return;
+	if (connect_pid > 0 && u_alive((unsigned int)connect_pid)) {
+		set_status("A WiFi connection is already in progress", 1);
+		return;
+	}
+	b = &bss[sel_bss];
+	ssid_name(b, sel_ssid);
+	if (write_wifi_cfg(b, pass) != 0) {
+		set_status("Cannot stage the WiFi request in /share", 1);
+		return;
+	}
+	if (connect_tty <= 0) {
+		connect_tty = u_tty_create();
+		if (connect_tty < 0)
+			connect_tty = 0;
+	}
+	conn_log_len = 0;
+	conn_log[0] = '\0';
+	connect_start = u_ticks_ms();
+
+	pid = u_spawn_detached("/ramfs/bin/wifi",
+			       "connectfile /share/netmenu.wifi",
+			       connect_tty, "/");
+	if (pid < 0) {
+		u_syscall1(SYS_UNLINK, (int)"/share/netmenu.wifi");
+		set_status("Cannot start the WiFi helper", 1);
+		return;
+	}
+	connect_pid = pid;
+	net_view = NET_CONNECT;
+	p = s_put(msg, "Connecting to \"");
+	p = s_put(p, sel_ssid);
+	p = s_put(p, "\"...");
+	*p = '\0';
+	set_status(msg, 0);
+}
+
+static void cancel_connect(void)
+{
+	if (connect_pid > 0 && u_alive((unsigned int)connect_pid))
+		u_kill((unsigned int)connect_pid);
+	connect_pid = -1;
+	u_wifi(SYS_WIFI_DISCONNECT, 0, 0);
+	net_view = NET_MAIN;
+	set_status("WiFi connection cancelled", 0);
+	load_status();
+}
+
+static void poll_connect(void)
+{
+	int i;
+
+	if (connect_pid <= 0)
+		return;
+
+	if (!u_alive((unsigned int)connect_pid)) {
+		connect_pid = -1;
+		load_status();
+		load_saved();
+		if (wst.state >= SYS_WIFI_ST_LINK) {
+			int have_ip = 0;
+
+			for (i = 0; i < 4; i++)
+				if (net.ip[i])
+					have_ip = 1;
+			net_view = NET_MAIN;
+			if (net_present && s_eq(net.name, "wifi")) {
+				if (have_ip)
+					set_status("WiFi connected and DHCP is up", 0);
+				else
+					set_status("WiFi connected, but DHCP got no lease",
+						   1);
+			} else {
+				set_status("WiFi associated, but the netdev is busy",
+					   1);
+			}
+		} else {
+			set_status("WiFi connection failed", 1);
+		}
+		ngui_invalidate(&ui);
+		return;
+	}
+	if (u_ticks_ms() - connect_start > 45000) {
+		u_kill((unsigned int)connect_pid);
+		connect_pid = -1;
+		u_wifi(SYS_WIFI_DISCONNECT, 0, 0);
+		set_status("WiFi connection timed out", 1);
+	}
+}
+
+static void select_device(int i)
+{
+	char msg[64], *p;
+
+	if (i < 0 || i >= ndev)
+		return;
+	p = s_put(msg, "Selecting ");
+	p = s_put(p, devs[i].name);
+	*p = '\0';
+	set_status(msg, 0);
+	paint_current();
+	if (u_net_select(devs[i].name) != 0) {
+		set_status("Cannot select that netdev (busy or unavailable)", 1);
+		return;
+	}
+	set_status("Running DHCP...", 0);
+	if (u_dhcp_run(6000) == 0)
+		set_status("Device selected; DHCP lease acquired", 0);
+	else
+		set_status("Device selected, but DHCP got no lease", 1);
+	load_devices();
+	ngui_invalidate(&ui);
+}
+
+static void select_bss(int i)
+{
+	if (i < 0 || i >= nbss)
+		return;
+	if (bss[i].ssid_len == 0) {
+		set_status("Hidden network: use `wifi connect` from a terminal",
+			   1);
+		return;
+	}
+	sel_bss = i;
+	ssid_name(&bss[i], sel_ssid);
+	if (bss[i].security == SYS_WIFI_SEC_OTHER) {
+		set_status("Unsupported security (only open and WPA2-PSK)", 1);
+		return;
+	}
+	if (bss[i].security == SYS_WIFI_SEC_PSK) {
+		int si = bss_saved(&bss[i]);
+
+		if (si >= 0 && saved[si].pass_len > 0) {
+			char pass[65];
+			unsigned int j;
+
+			for (j = 0; j < saved[si].pass_len; j++)
+				pass[j] = saved[si].pass[j];
+			pass[saved[si].pass_len] = '\0';
+			start_connect(pass);
+			for (j = 0; j < sizeof(pass); j++)
+				((volatile char *)pass)[j] = 0;
+			return;
+		}
+		ngui_input_set(&pass_in, "");
+		pass_in.secret = 1;
+		pass_in.placeholder = "WPA2 passphrase";
+		net_view = NET_PASS;
+		set_status("", 0);
+		ngui_set_focus(&ui, ID_NET_PASS_INPUT);
+		ngui_invalidate(&ui);
+		return;
+	}
+	start_connect("");
+}
+
+static void draw_status_card(struct ngui_rect r)
+{
+	struct ngui_rect line_r = { r.x + 34, r.y + 34, r.w - 44, 16 };
+	struct ngui_rect dot = { r.x + 14, r.y + 25, 10, 10 };
+	char line[160], *p;
+	unsigned short dot_color;
+	int i, have_ip = 0;
+
+	for (i = 0; i < 4; i++)
+		if (net.ip[i])
+			have_ip = 1;
+	if (!net_present)
+		dot_color = ui.theme.error;
+	else if (!have_ip ||
+		 (s_eq(net.name, "wifi") && wst.state < SYS_WIFI_ST_LINK))
+		dot_color = ui.theme.warning;
+	else
+		dot_color = ui.theme.success;
+
+	ngui_fill_round_rect(&ui, r, NGUI_RADIUS, NGUI_RADIUS,
+			     NGUI_RADIUS, NGUI_RADIUS, ui.theme.panel);
+	ngui_frame_round(&ui, r, NGUI_RADIUS, NGUI_RADIUS,
+			 NGUI_RADIUS, NGUI_RADIUS, 1, ui.theme.panel_alt);
+	ngui_fill_round_rect(&ui, dot, 5, 5, 5, 5, dot_color);
+
+	p = line;
+	if (!net_present)
+		p = s_put(p, "Offline");
+	else if (s_eq(net.name, "wifi"))
+		p = s_put(p, wst.state >= SYS_WIFI_ST_LINK ?
+			  "Wi-Fi connected" : "Wi-Fi");
+	else if (s_eq(net.name, "rndis"))
+		p = s_put(p, "USB tethering");
+	else
+		p = s_put(p, "Wired network");
+	*p = '\0';
+	ngui_text_px(&ui, r.x + 34, r.y + 10, line, s_len(line),
+		     ui.theme.text, 14, 1, 0, 0);
+
+	p = line;
+	if (net_present) {
+		p = s_put(p, net.name);
+		p = s_put(p, " \xC2\xB7 ");
+		if (have_ip) {
+			p = s_put_dec(p, net.ip[0]); *p++ = '.';
+			p = s_put_dec(p, net.ip[1]); *p++ = '.';
+			p = s_put_dec(p, net.ip[2]); *p++ = '.';
+			p = s_put_dec(p, net.ip[3]);
+		} else {
+			p = s_put(p, "no IP");
+		}
+		if (s_eq(net.name, "wifi") && wst.state >= SYS_WIFI_ST_ASSOC) {
+			p = s_put(p, " \xC2\xB7 ");
+			for (i = 0; i < wst.ssid_len && i < 32; i++)
+				*p++ = (char)wst.ssid[i];
+			p = s_put(p, "  ");
+			if (wst.rssi < 0) {
+				*p++ = '-';
+				p = s_put_dec(p, (unsigned int)(-wst.rssi));
+			} else {
+				p = s_put_dec(p, (unsigned int)wst.rssi);
+			}
+			p = s_put(p, " dBm");
+		}
+	} else {
+		p = s_put(p, "No network device active");
+	}
+	*p = '\0';
+	ngui_text_ellipsis_utf8(&ui, line_r, line_r.x, line_r.y, line,
+				ui.theme.text_dim);
+}
+
+static void draw_net_main(struct ngui_rect area, int *yy)
+{
+	struct ngui_row row;
+	struct ngui_rect r;
+	char ssid[33], sub[80], *p, value[48];
+	int i, shown = 0, more, n, y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Connection", 0, 0);
+	y += SECTION_H;
+	r = (struct ngui_rect){ area.x, y, area.w, CARD_H };
+	draw_status_card(r);
+	y += CARD_H + GAP;
+
+	for (i = 0; i < ndev; i++)
+		if (devs[i].kind != SYS_NETDEV_WIFI)
+			shown++;
+	more = shown > 4 ? shown - 4 : 0;
+	if (shown > 4)
+		shown = 4;
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	if (ngui_section(&ui, r, "Devices", ID_NET_REFRESH, "Refresh"))
+		request_action(A_REFRESH, 0);
+	y += SECTION_H;
+	n = 0;
+	for (i = 0; i < ndev && n < shown; i++) {
+		if (devs[i].kind == SYS_NETDEV_WIFI)
+			continue;
+		r = (struct ngui_rect){ area.x, y, area.w, DEV_ROW_H };
+		if (r.y + r.h > area.y && r.y < area.y + area.h) {
+			row.title = devs[i].name;
+			row.subtitle = devs[i].chip;
+			row.trailing = devs[i].active ? "Connected" :
+				       (devs[i].link ? "link" : 0);
+			row.bars = -1;
+			row.selected = devs[i].active;
+			if (ngui_list_row(&ui, ID_DEV_BASE + i, r, &row))
+				request_action(A_DEV, i);
+		}
+		y += DEV_ROW_H;
+		n++;
+	}
+	if (!shown) {
+		const char *msg = wifi_present ?
+			"No wired or USB device" :
+			"No device found - plug one in and Refresh";
+
+		ngui_text_utf8(&ui, area.x + 12, y + 12, msg,
+			       ui.theme.text_dim);
+		y += DEV_ROW_H;
+	} else if (more) {
+		char line[32], *lp = line;
+
+		lp = s_put(lp, "+");
+		lp = s_put_dec(lp, (unsigned int)more);
+		lp = s_put(lp, " more devices");
+		*lp = '\0';
+		ngui_text_utf8(&ui, area.x + 12, y + 2, line,
+			       ui.theme.text_dim);
+		y += 20;
+	}
+
+	y += GAP;
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	if (wifi_present && wst.state >= SYS_WIFI_ST_ASSOC) {
+		if (ngui_section(&ui, r, "Wi-Fi", ID_NET_DISCONNECT,
+				 "Disconnect"))
+			request_action(A_DISCONNECT, 0);
+	} else if (wifi_present && !scanning) {
+		if (ngui_section(&ui, r, "Wi-Fi", ID_NET_SCAN, "Scan"))
+			request_action(A_SCAN, 0);
+	} else {
+		ngui_section(&ui, r, "Wi-Fi", 0, 0);
+	}
+	y += SECTION_H;
+
+	if (!wifi_present) {
+		ngui_text_utf8(&ui, area.x + 12, y + 12,
+			       "No Wi-Fi card detected", ui.theme.text_dim);
+		y += BSS_ROW_H;
+	} else if (scanning) {
+		ngui_text_utf8(&ui, area.x + 12, y + 12,
+			       "Scanning for networks...", ui.theme.accent);
+		y += BSS_ROW_H;
+	} else if (nbss == 0) {
+		const char *msg = wst.state >= SYS_WIFI_ST_ASSOC ?
+			"Connected - disconnect to scan for other networks" :
+			"Press Scan to list Wi-Fi networks";
+
+		ngui_text_utf8(&ui, area.x + 12, y + 12, msg,
+			       ui.theme.text_dim);
+		y += BSS_ROW_H;
+	} else {
+		for (i = 0; i < nbss; i++) {
+			struct sys_wifi_bss *b = &bss[i];
+			struct ngui_rect br = { area.x, y, area.w, BSS_ROW_H };
+
+			if (br.y + br.h > area.y && br.y < area.y + area.h) {
+				ssid_name(b, ssid);
+				p = sub;
+				p = s_put(p, security_name(b->security));
+				if (bss_saved(b) >= 0)
+					p = s_put(p, " \xC2\xB7 saved");
+				if (bss_is_active(b))
+					p = s_put(p, " \xC2\xB7 connected");
+				*p = '\0';
+
+				row.title = ssid;
+				row.subtitle = sub;
+				row.trailing = 0;
+				row.bars = b->security == SYS_WIFI_SEC_OTHER ?
+					   -1 : rssi_bars(b->rssi);
+				row.selected = bss_is_active(b);
+				if (ngui_list_row_utf8(&ui, ID_BSS_BASE + i,
+						       br, &row))
+					request_action(A_BSS, i);
+			}
+			y += BSS_ROW_H;
+		}
+	}
+
+	if (net_present) {
+		static const char *labels[4] = {
+			"IP address", "Gateway", "DNS", "MAC address"
+		};
+		int di;
+
+		y += GAP;
+		r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+		ngui_section(&ui, r, "Details", 0, 0);
+		y += SECTION_H;
+		for (di = 0; di < 4; di++) {
+			char *vp = value;
+
+			if (di == 0) {
+				if (net.ip[0] || net.ip[1] || net.ip[2] ||
+				    net.ip[3]) {
+					vp = s_put_dec(vp, net.ip[0]); *vp++ = '.';
+					vp = s_put_dec(vp, net.ip[1]); *vp++ = '.';
+					vp = s_put_dec(vp, net.ip[2]); *vp++ = '.';
+					vp = s_put_dec(vp, net.ip[3]);
+				} else {
+					vp = s_put(vp, "not configured");
+				}
+			} else if (di == 1) {
+				if (net.gw[0] || net.gw[1] || net.gw[2] ||
+				    net.gw[3]) {
+					vp = s_put_dec(vp, net.gw[0]); *vp++ = '.';
+					vp = s_put_dec(vp, net.gw[1]); *vp++ = '.';
+					vp = s_put_dec(vp, net.gw[2]); *vp++ = '.';
+					vp = s_put_dec(vp, net.gw[3]);
+				} else {
+					vp = s_put(vp, "-");
+				}
+			} else if (di == 2) {
+				if (net.dns[0] || net.dns[1] || net.dns[2] ||
+				    net.dns[3]) {
+					vp = s_put_dec(vp, net.dns[0]); *vp++ = '.';
+					vp = s_put_dec(vp, net.dns[1]); *vp++ = '.';
+					vp = s_put_dec(vp, net.dns[2]); *vp++ = '.';
+					vp = s_put_dec(vp, net.dns[3]);
+				} else {
+					vp = s_put(vp, "-");
+				}
+			} else {
+				static const char hex[] = "0123456789abcdef";
+				int k;
+
+				for (k = 0; k < 6; k++) {
+					*vp++ = hex[net.mac[k] >> 4];
+					*vp++ = hex[net.mac[k] & 15];
+					if (k != 5)
+						*vp++ = ':';
+				}
+			}
+			*vp = '\0';
+			r = (struct ngui_rect){ area.x, y, area.w, INFO_ROW_H };
+			if (r.y + r.h > area.y && r.y < area.y + area.h) {
+				row.title = labels[di];
+				row.subtitle = 0;
+				row.trailing = value;
+				row.bars = -1;
+				row.selected = 0;
+				ngui_list_row(&ui, ID_INFO_BASE + di, r, &row);
+			}
+			y += INFO_ROW_H;
+		}
+	}
+
+	if (nsaved) {
+		char nbuf[12], *np = nbuf;
+
+		y += GAP;
+		r = (struct ngui_rect){ area.x, y, area.w, SAVED_ROW_H };
+		if (r.y + r.h > area.y && r.y < area.y + area.h) {
+			np = s_put_dec(np, (unsigned int)nsaved);
+			*np = '\0';
+			row.title = "Saved networks";
+			row.subtitle = 0;
+			row.trailing = nbuf;
+			row.bars = -1;
+			row.selected = 0;
+			if (ngui_list_row(&ui, ID_NET_SAVED, r, &row))
+				request_action(A_SAVED, 0);
+		}
+		y += SAVED_ROW_H;
+	}
+	*yy = y;
+}
+
+static void draw_net_pass(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r;
+	char line[96], *p;
+	int ev, y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, 24 };
+	p = s_put(line, "Join \"");
+	p = s_put(p, sel_ssid);
+	p = s_put(p, "\"");
+	*p = '\0';
+	ngui_text_ellipsis_utf8(&ui, r, r.x, r.y, line, ui.theme.text);
+	y += 28;
+
+	r = (struct ngui_rect){ area.x, y, area.w, 20 };
+	ngui_text_px(&ui, r.x, r.y, "WPA2-PSK passphrase", 19,
+		     ui.theme.text_dim, 14, 1, 0, 0);
+	y += 20;
+	r = (struct ngui_rect){ area.x, y, area.w, 34 };
+	ev = ngui_text_input(&ui, ID_NET_PASS_INPUT, r, &pass_in);
+	if (ev & NGUI_INPUT_SUBMIT)
+		request_action(A_PASS_OK, 0);
+	if (ev & NGUI_INPUT_CANCEL)
+		request_action(A_PASS_CANCEL, 0);
+	y += 34 + GAP;
+
+	ngui_text_utf8(&ui, area.x, y,
+		       "8-63 characters, or 64 hex digits for a raw PSK.",
+		       ui.theme.text_dim);
+	y += 24 + GAP;
+
+	r = (struct ngui_rect){ area.x, y, 110, 28 };
+	if (ngui_button(&ui, ID_NET_PASS_OK, r, "Connect"))
+		request_action(A_PASS_OK, 0);
+	r.x += 120;
+	if (ngui_button(&ui, ID_NET_PASS_CANCEL, r, "Cancel"))
+		request_action(A_PASS_CANCEL, 0);
+	y += 28;
+	*yy = y;
+}
+
+static void draw_net_connect(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect log, b, r;
+	char line[96], *p;
+	unsigned int start = 0, lines = 0, i;
+	int y = *yy, line_y = 0;
+
+	r = (struct ngui_rect){ area.x, y, area.w, 22 };
+	p = s_put(line, connect_pid > 0 ? "Connecting to \"" :
+		  "Connection to \"");
+	p = s_put(p, sel_ssid);
+	p = s_put(p, "\"");
+	*p = '\0';
+	ngui_text_ellipsis_utf8(&ui, r, r.x, r.y, line, ui.theme.text);
+	y += 28;
+
+	log = (struct ngui_rect){ area.x, y, area.w, 240 };
+	ngui_fill_round_rect(&ui, log, NGUI_RADIUS, NGUI_RADIUS,
+			     NGUI_RADIUS, NGUI_RADIUS, ui.theme.panel);
+	ngui_push_clip(&ui, (struct ngui_rect){ log.x + 8, log.y + 8,
+						log.w - 16, log.h - 16 });
+	for (i = conn_log_len; i > 0; i--) {
+		if (conn_log[i - 1] == '\n' && ++lines > 12) {
+			start = i;
+			break;
+		}
+	}
+	y = log.y + 10;
+	for (i = start; i < conn_log_len && y + 17 <= log.y + log.h - 8; i++) {
+		char c = conn_log[i];
+
+		if (c == '\r')
+			continue;
+		if (c == '\n') {
+			line[line_y] = '\0';
+			if (line_y)
+				ngui_text_px(&ui, log.x + 10, y, line,
+					     (unsigned int)line_y,
+					     ui.theme.text_dim, 14, 0, 0, 1);
+			y += 17;
+			line_y = 0;
+			continue;
+		}
+		if ((unsigned int)line_y + 1 < sizeof(line))
+			line[line_y++] = c;
+	}
+	if (line_y) {
+		line[line_y] = '\0';
+		ngui_text_px(&ui, log.x + 10, y, line, (unsigned int)line_y,
+			     ui.theme.text_dim, 14, 0, 0, 1);
+	}
+	ngui_pop_clip(&ui);
+	y = log.y + log.h + GAP;
+
+	b = (struct ngui_rect){ area.x, y, 110, 28 };
+	if (ngui_button(&ui, ID_NET_CONN_CANCEL, b,
+			connect_pid > 0 ? "Cancel" : "Back"))
+		request_action(A_CONN_CANCEL, 0);
+	y += 28;
+	*yy = y;
+}
+
+static void draw_net_saved(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r, bt;
+	struct ngui_row desc;
+	char ssid[33];
+	int i, y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, 22 };
+	ngui_text_px(&ui, r.x, r.y, "Saved Wi-Fi networks", 20,
+		     ui.theme.text, 14, 1, 0, 0);
+	y += 28;
+
+	if (!nsaved) {
+		ngui_text_utf8(&ui, area.x, y, "No saved networks",
+			       ui.theme.text_dim);
+		y += 24;
+	} else {
+		for (i = 0; i < nsaved; i++) {
+			r = (struct ngui_rect){ area.x, y, area.w,
+						SAVED_ROW_H };
+
+			if (r.y + r.h > area.y && r.y < area.y + area.h) {
+				cfg_ssid_name(&saved[i], ssid);
+				bt = r;
+				bt.x = r.x + r.w - 74;
+				bt.w = 64;
+				bt.h = 28;
+				bt.y = r.y + 7;
+				r.w -= 84;
+
+				desc.title = ssid;
+				desc.subtitle = saved[i].pass_len ? "WPA2-PSK" :
+						"Open";
+				desc.trailing = 0;
+				desc.bars = -1;
+				desc.selected = 0;
+				ngui_list_row_utf8(&ui, ID_SAVED_ROW_BASE + i,
+						   r, &desc);
+				if (ngui_button(&ui, ID_SAVED_FORGET_BASE + i,
+						bt, "Forget"))
+					request_action(A_FORGET, i);
+			}
+			y += SAVED_ROW_H;
+		}
+	}
+	r = (struct ngui_rect){ area.x, y, 100, 28 };
+	if (ngui_button(&ui, ID_NET_SAVED_BACK, r, "Back"))
+		request_action(A_SAVED_BACK, 0);
+	y += 28;
+	*yy = y;
+}
+
+static void draw_network(struct ngui_rect area, int *yy)
+{
+	if (net_view == NET_PASS)
+		draw_net_pass(area, yy);
+	else if (net_view == NET_CONNECT)
+		draw_net_connect(area, yy);
+	else if (net_view == NET_SAVED)
+		draw_net_saved(area, yy);
+	else
+		draw_net_main(area, yy);
+}
+
+/* ------------------------------------------------------------------ */
+/* Power                                                               */
+
+static const char *power_mode_name(int mode)
+{
+	switch (mode) {
+	case SYS_CPUFREQ_MAX:
+		return "Performance";
+	case SYS_CPUFREQ_MIN:
+		return "Power saver";
+	case SYS_CPUFREQ_OFF:
+		return "Off";
+	case SYS_CPUFREQ_FIXED:
+		return "Fixed";
+	case SYS_CPUFREQ_AUTO:
+		return "Balanced";
+	default:
+		return "Unavailable";
+	}
+}
+
+static void set_power_mode(int mode)
+{
+	int got = u_cpufreq_set(mode);
+	char msg[48], *p;
+
+	if (got < 0) {
+		set_status("Power mode is not available", 1);
+		return;
+	}
+	cpufreq_mode = got;
+	p = s_put(msg, "Power mode: ");
+	p = s_put(p, power_mode_name(got));
+	*p = '\0';
+	set_status(msg, 0);
+	ngui_invalidate(&ui);
+}
+
+static void draw_power(struct ngui_rect area, int *yy)
+{
+	static const char *labels[3] = {
+		"Balanced", "Performance", "Power saver"
+	};
+	static const char *subs[3] = {
+		"Automatic race-to-idle", "Maximum non-turbo P-state",
+		"Minimum P-state"
+	};
+	static const int modes[3] = {
+		SYS_CPUFREQ_AUTO, SYS_CPUFREQ_MAX, SYS_CPUFREQ_MIN
+	};
+	struct ngui_rect r;
+	struct ngui_row row;
+	int i, y = *yy;
+	int batt = -1, charging = 0, discharging = 0, ac = -1;
+	char value[48], *p;
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Power mode", 0, 0);
+	y += SECTION_H;
+	for (i = 0; i < 3; i++) {
+		r = (struct ngui_rect){ area.x, y, area.w, 42 };
+		if (r.y + r.h > area.y && r.y < area.y + area.h) {
+			row.title = labels[i];
+			row.subtitle = subs[i];
+			row.trailing = 0;
+			row.bars = -1;
+			row.selected = cpufreq_mode == modes[i];
+			if (ngui_list_row(&ui, ID_POWER_MODE_BASE + i, r,
+					  &row))
+				request_action(A_POWER, modes[i]);
+		}
+		y += 42;
+	}
+	y += GAP;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Changes the P-state governor immediately.",
+		       ui.theme.text_dim);
+	y += 22;
+
+	if (brightness >= 0) {
+		struct ngui_rect slider;
+		int v = brightness;
+		char b[8], *bp = b;
+
+		y += GAP;
+		r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+		ngui_section(&ui, r, "Brightness", 0, 0);
+		y += SECTION_H;
+		bp = s_put_dec(bp, (unsigned int)brightness);
+		*bp++ = '%';
+		*bp = '\0';
+		ngui_text_utf8(&ui, area.x + 10, y, b, ui.theme.text);
+		y += 20;
+		slider = (struct ngui_rect){ area.x + 10, y,
+					     area.w - 20, 16 };
+		if (ngui_slider(&ui, ID_BRIGHTNESS, &brightness_slider,
+				slider, &v, 5, 100)) {
+			int got = u_backlight_set(v);
+
+			brightness = got >= 0 ? got : v;
+		}
+		y += 24;
+	}
+
+	if (power_ok) {
+		ac = powerinfo.ac_online;
+		for (i = 0; i < SYS_POWER_BATT_MAX; i++) {
+			struct sys_battery *b = &powerinfo.battery[i];
+
+			if (!b->present)
+				continue;
+			if (b->percent_valid)
+				batt = (int)b->percent;
+			charging = (int)b->charging;
+			discharging = (int)b->discharging;
+			break;
+		}
+	}
+
+	y += GAP;
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Power source", 0, 0);
+	y += SECTION_H;
+	if (!power_ok) {
+		ngui_text_utf8(&ui, area.x + 10, y + 8,
+			       "No battery or AC information on this machine.",
+			       ui.theme.text_dim);
+		y += 32;
+	} else {
+		p = value;
+		if (ac > 0)
+			p = s_put(p, "AC online");
+		else if (ac == 0)
+			p = s_put(p, "Battery");
+		else
+			p = s_put(p, "Unknown");
+		*p = '\0';
+		info_row(area, &y, "Source", value);
+		p = value;
+		if (batt >= 0) {
+			p = s_put_dec(p, (unsigned int)batt);
+			*p++ = '%';
+			if (charging)
+				p = s_put(p, " charging");
+			else if (discharging)
+				p = s_put(p, " discharging");
+		} else {
+			p = s_put(p, "not present");
+		}
+		*p = '\0';
+		info_row(area, &y, "Battery", value);
+	}
+	*yy = y;
+}
+
+/* ------------------------------------------------------------------ */
+/* Date & time                                                         */
+
+static unsigned int days_in_month(unsigned int y, unsigned int m)
+{
+	static const unsigned char dm[12] = {
+		31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
+	};
+
+	if (m < 1 || m > 12)
+		return 0;
+	if (m == 2 && ((y % 4 == 0 && y % 100 != 0) || y % 400 == 0))
+		return 29;
+	return dm[m - 1];
+}
+
+static int parse_num(const char *s, unsigned int n, unsigned int *out)
+{
+	unsigned int v = 0, i;
+
+	if (!n)
+		return -1;
+	for (i = 0; i < n; i++) {
+		if (s[i] < '0' || s[i] > '9')
+			return -1;
+		v = v * 10 + (unsigned int)(s[i] - '0');
+	}
+	*out = v;
+	return 0;
+}
+
+static int parse_date(const char *s, unsigned int *y, unsigned int *mo,
+		      unsigned int *d)
+{
+	if (s_len(s) != 10)
+		return -1;
+	if ((s[4] != '-' && s[4] != '/') ||
+	    (s[7] != '-' && s[7] != '/'))
+		return -1;
+	if (parse_num(s, 4, y) != 0 ||
+	    parse_num(s + 5, 2, mo) != 0 ||
+	    parse_num(s + 8, 2, d) != 0)
+		return -1;
+	return 0;
+}
+
+static int parse_time(const char *s, unsigned int *h, unsigned int *mi,
+		      unsigned int *sec)
+{
+	unsigned int len = s_len(s);
+
+	if (len == 5) {
+		*sec = 0;
+	} else if (len == 8) {
+		if (s[5] != ':' || parse_num(s + 6, 2, sec) != 0)
+			return -1;
+	} else {
+		return -1;
+	}
+	if (s[2] != ':' ||
+	    parse_num(s, 2, h) != 0 ||
+	    parse_num(s + 3, 2, mi) != 0)
+		return -1;
+	return 0;
+}
+
+static void format_date(char *b, const struct sys_datetime *dt)
+{
+	char *p = s_put_dec(b, dt->year);
+
+	*p++ = '-';
+	p = s_put_2(p, dt->month);
+	*p++ = '-';
+	p = s_put_2(p, dt->day);
+	*p = '\0';
+}
+
+static void format_time_sec(char *b, const struct sys_datetime *dt)
+{
+	char *p = s_put_2(b, dt->hour);
+
+	*p++ = ':';
+	p = s_put_2(p, dt->minute);
+	*p++ = ':';
+	p = s_put_2(p, dt->second);
+	*p = '\0';
+}
+
+static void load_datetime_fields(int force)
+{
+	char b[24];
+
+	if (date_loaded && !force)
+		return;
+	if (force || !now_ok) {
+		if (u_rtc_get(&now) != 0) {
+			now_ok = 0;
+			return;
+		}
+		now_ok = 1;
+	}
+	format_date(b, &now);
+	ngui_input_set(&date_in, b);
+	format_time_sec(b, &now);
+	ngui_input_set(&time_in, b);
+	if (!ntp_in.len)
+		ngui_input_set(&ntp_in, "pool.ntp.org");
+	date_loaded = 1;
+}
+
+static void apply_datetime(void)
+{
+	struct sys_datetime dt;
+	unsigned int y, mo, d, h, mi, s;
+
+	if (parse_date(date_in.text, &y, &mo, &d) != 0) {
+		set_status("Date must be YYYY-MM-DD", 1);
+		return;
+	}
+	if (parse_time(time_in.text, &h, &mi, &s) != 0) {
+		set_status("Time must be HH:MM:SS", 1);
+		return;
+	}
+	if (y < 1970 || y > 2069) {
+		set_status("Year must be 1970-2069", 1);
+		return;
+	}
+	if (mo < 1 || mo > 12) {
+		set_status("Month must be 1-12", 1);
+		return;
+	}
+	if (d < 1 || d > days_in_month(y, mo)) {
+		set_status("Day is not valid for that month", 1);
+		return;
+	}
+	if (h > 23 || mi > 59 || s > 59) {
+		set_status("Time is out of range", 1);
+		return;
+	}
+
+	dt.year = y;
+	dt.month = mo;
+	dt.day = d;
+	dt.hour = h;
+	dt.minute = mi;
+	dt.second = s;
+	dt.wday = 0;
+	if (u_rtc_set(&dt) != 0) {
+		set_status("RTC write failed", 1);
+		return;
+	}
+	load_status();
+	load_datetime_fields(1);
+	set_status("Date and time updated", 0);
+}
+
+static const char *ntp_error(int r)
+{
+	switch (r) {
+	case SYS_NTP_ENONIC:
+		return "NTP: no network adapter";
+	case SYS_NTP_ENAME:
+		return "NTP: cannot resolve the server";
+	case SYS_NTP_EARP:
+		return "NTP: server is unreachable (ARP)";
+	case SYS_NTP_ETX:
+		return "NTP: transmit failed";
+	case SYS_NTP_ETIMEOUT:
+		return "NTP: server did not respond";
+	case SYS_NTP_EREPLY:
+		return "NTP: invalid server reply";
+	case SYS_NTP_EBUSY:
+		return "NTP: network is busy";
+	default:
+		return "NTP: sync failed";
+	}
+}
+
+static void sync_ntp(void)
+{
+	struct sys_datetime dt;
+	const char *server = ntp_in.text[0] ? ntp_in.text : "pool.ntp.org";
+	int r;
+
+	set_status("Syncing NTP...", 0);
+	paint_current();
+	r = u_ntp_sync(server, 5000, &dt);
+	if (r != 0) {
+		set_status(ntp_error(r), 1);
+		return;
+	}
+	if (u_rtc_set(&dt) != 0) {
+		set_status("RTC write failed", 1);
+		return;
+	}
+	load_status();
+	load_datetime_fields(1);
+	set_status("Date and time synced", 0);
+}
+
+static void date_field(struct ngui_rect area, int *yy, const char *label,
+		       unsigned int id, struct ngui_input *in,
+		       unsigned int next_id)
+{
+	struct ngui_rect r;
+	int ev;
+
+	r = (struct ngui_rect){ area.x + 10, *yy, area.w - 20, 18 };
+	ngui_text_utf8(&ui, r.x, r.y, label, ui.theme.text_dim);
+	*yy += 18;
+	r = (struct ngui_rect){ area.x + 10, *yy, area.w - 20, 32 };
+	ev = ngui_text_input(&ui, id, r, in);
+	if (ev & NGUI_INPUT_SUBMIT)
+		request_action(id == ID_NTP_FIELD ? A_DATE_NTP : A_DATE_SET, 0);
+	if (ev & NGUI_INPUT_NEXT)
+		ngui_set_focus(&ui, next_id);
+	if (ev & NGUI_INPUT_CANCEL)
+		ngui_set_focus(&ui, 0);
+	*yy += 32 + 8;
+}
+
+static void draw_datetime(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r;
+	char current[64], *p;
+	int y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Date & Time", 0, 0);
+	y += SECTION_H;
+
+	p = current;
+	p = s_put(p, "Current: ");
+	if (now_ok) {
+		format_date(p, &now);
+		p += s_len(p);
+		*p++ = ' ';
+		format_time_sec(p, &now);
+	} else {
+		s_put(p, "unavailable");
+	}
+	ngui_text_utf8(&ui, area.x + 10, y, current, ui.theme.text_dim);
+	y += 24;
+
+	date_field(area, &y, "Date (YYYY-MM-DD)", ID_DATE_FIELD, &date_in,
+		   ID_TIME_FIELD);
+	date_field(area, &y, "Time (HH:MM:SS)", ID_TIME_FIELD, &time_in,
+		   ID_NTP_FIELD);
+	date_field(area, &y, "NTP server (UTC)", ID_NTP_FIELD, &ntp_in,
+		   ID_DATE_FIELD);
+
+	r = (struct ngui_rect){ area.x + 10, y, 80, 28 };
+	if (ngui_button(&ui, ID_DATE_SET, r, "Set"))
+		request_action(A_DATE_SET, 0);
+	r.x += 88;
+	if (ngui_button(&ui, ID_DATE_NOW, r, "Now"))
+		request_action(A_DATE_NOW, 0);
+	r.x += 88;
+	r.w = 110;
+	if (ngui_button(&ui, ID_DATE_NTP, r, "Sync NTP"))
+		request_action(A_DATE_NTP, 0);
+	y += 28 + GAP;
+
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Sync NTP fetches UTC and writes the RTC.",
+		       ui.theme.text_dim);
+	y += 22;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Year range: 1970-2069. Enter applies.",
+		       ui.theme.text_dim);
+	y += 22;
+	*yy = y;
+}
+
+/* ------------------------------------------------------------------ */
+/* Appearance and the wallpaper picker                                 */
+
+static int path_is_file(const char *path)
+{
+	struct sys_stat st;
+
+	return u_stat(path, &st) == 0 && !st.is_dir && st.size > 0;
+}
+
+static void wallpaper_refresh(void)
+{
+	if (path_is_file(WM_WALLPAPER_DATA)) {
+		wallpaper_present = 1;
+		s_copy(wallpaper_source, "/data/WALLPAPR.BIN",
+		       sizeof(wallpaper_source));
+	} else if (path_is_file(WM_WALLPAPER_SHARE)) {
+		wallpaper_present = 1;
+		s_copy(wallpaper_source, "/share/wallpaper",
+		       sizeof(wallpaper_source));
+	} else {
+		wallpaper_present = 0;
+		wallpaper_source[0] = '\0';
+	}
+}
+
+static int lower_char(int c)
+{
+	return c >= 'A' && c <= 'Z' ? c + 'a' - 'A' : c;
+}
+
+static int ext_is_image(const char *name)
+{
+	static const char *const exts[] = {
+		".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tga", ".ppm",
+		".pgm", ".pbm", ".ico", ".cur", ".pam"
+	};
+	unsigned int i;
+	int n = (int)s_len(name), e;
+
+	for (e = n - 1; e >= 0 && name[e] != '.'; e--)
+		;
+	if (e < 0)
+		return 0;
+	for (i = 0; i < sizeof(exts) / sizeof(exts[0]); i++) {
+		const char *x = exts[i];
+		int k = 0;
+
+		while (x[k] && e + k < n &&
+		       lower_char((unsigned char)name[e + k]) == x[k])
+			k++;
+		if (!x[k] && e + k == n)
+			return 1;
+	}
+	return 0;
+}
+
+static void trim_name(char *s)
+{
+	int n = (int)s_len(s);
+
+	while (n > 0 && (s[n - 1] == ' ' || s[n - 1] == '\t'))
+		s[--n] = '\0';
+}
+
+static void path_join(char *out, unsigned int cap, const char *base,
+		      const char *name)
+{
+	unsigned int n = s_len(base);
+	int slash = n > 0 && base[n - 1] == '/';
+
+	if (n >= cap - 1) {
+		out[0] = '\0';
+		return;
+	}
+	s_copy(out, base, cap);
+	if (!slash && s_len(out) + 1 < cap) {
+		out[s_len(out)] = '/';
+		out[s_len(out) + 1] = '\0';
+	}
+	if (s_len(out) + s_len(name) + 1 < cap)
+		s_copy(out + s_len(out), name, cap - s_len(out));
+}
+
+static void load_picker_dir(const char *path)
+{
+	struct sys_dirent d;
+	int i = 0, n;
+
+	s_copy(pick_path, path && path[0] ? path : "/", sizeof(pick_path));
+	if (s_len(pick_path) > 1 && pick_path[s_len(pick_path) - 1] == '/')
+		pick_path[s_len(pick_path) - 1] = '\0';
+	pick_count = 0;
+	picker_scroll.offset = 0;
+	if (s_eq(pick_path, "/")) {
+		/* The VFS root is the mount table, not a directory with
+		 * entries; mirror the files app and list the mounts. */
+		struct sys_mount m;
+
+		while (pick_count < PICK_MAX &&
+		       u_syscall2(SYS_LIST_MOUNTS, i++, (int)&m) == 1) {
+			trim_name(m.name);
+			if (!m.name[0])
+				continue;
+			s_copy(pick_names[pick_count], m.name, 64);
+			pick_sizes[pick_count] = 0;
+			pick_dirs[pick_count] = 1;
+			pick_count++;
+		}
+	} else {
+		while (pick_count < PICK_MAX &&
+		       (n = u_syscall3(SYS_LIST_DIR, (int)pick_path, i++,
+				       (int)&d)) == 1) {
+			char disp[64];
+
+			if (d.raw_83) {
+				u_fat_name(d.name, disp, sizeof(disp));
+			} else {
+				trim_name(d.name);
+				s_copy(disp, d.name, sizeof(disp));
+			}
+			if (!disp[0] || s_eq(disp, ".") || s_eq(disp, ".."))
+				continue;
+			if (!d.is_dir && !ext_is_image(disp))
+				continue;
+			s_copy(pick_names[pick_count], disp, 64);
+			pick_sizes[pick_count] = d.size;
+			pick_dirs[pick_count] = d.is_dir ? 1 : 0;
+			pick_count++;
+		}
+	}
+	/* Directories first, then case-insensitive name order. */
+	for (i = 1; i < pick_count; i++) {
+		int j = i;
+
+		while (j > 0) {
+			int swap;
+			int a = j - 1, b = j;
+			unsigned int k;
+
+			if (pick_dirs[a] != pick_dirs[b]) {
+				swap = pick_dirs[b] > pick_dirs[a];
+			} else {
+				swap = 0;
+				for (k = 0; pick_names[a][k] &&
+					    pick_names[b][k]; k++) {
+					int ca = lower_char((unsigned char)
+							    pick_names[a][k]);
+					int cb = lower_char((unsigned char)
+							    pick_names[b][k]);
+
+					if (ca != cb) {
+						swap = cb < ca;
+						break;
+					}
+				}
+				if (!swap && !pick_names[a][k] &&
+				    pick_names[b][k])
+					swap = 1;
+			}
+			if (!swap)
+				break;
+			{
+				char tn[64];
+				unsigned int ts = pick_sizes[a];
+				unsigned char td = pick_dirs[a];
+
+				s_copy(tn, pick_names[a], sizeof(tn));
+				s_copy(pick_names[a], pick_names[b], 64);
+				pick_sizes[a] = pick_sizes[b];
+				pick_dirs[a] = pick_dirs[b];
+				s_copy(pick_names[b], tn, 64);
+				pick_sizes[b] = ts;
+				pick_dirs[b] = td;
+			}
+			j--;
+		}
+	}
+}
+
+static void pick_parent(char *out, unsigned int cap)
+{
+	char tmp[PICK_PATH_MAX];
+	unsigned int n;
+
+	s_copy(tmp, pick_path, sizeof(tmp));
+	n = s_len(tmp);
+	if (n && tmp[n - 1] == '/')
+		tmp[--n] = '\0';
+	while (n > 0 && tmp[n - 1] != '/')
+		n--;
+	if (n == 0)
+		s_copy(out, "/", cap);
+	else {
+		tmp[n - 1] = '\0';
+		s_copy(out, n == 1 ? "/" : tmp, cap);
+	}
+}
+
+static void picker_activate(int idx)
+{
+	char full[PICK_PATH_MAX + 72];
+
+	if (idx < 0 || idx >= pick_count)
+		return;
+	path_join(full, sizeof(full), pick_path, pick_names[idx]);
+	if (pick_dirs[idx]) {
+		load_picker_dir(full);
+		ngui_invalidate(&ui);
+		return;
+	}
+	set_status("Loading wallpaper...", 0);
+	paint_current();
+	set_wallpaper_file(full);
+	picker_mode = 0;
+	wallpaper_refresh();
+	ngui_invalidate(&ui);
+}
+
+static void set_wallpaper_file(const char *path)
+{
+	struct sys_stat st;
+	struct img_info info;
+	struct img_options opt;
+	struct img_mem mem;
+	struct img_image img;
+	struct img_blit b;
+	struct wm_wallpaper_hdr *h;
+	unsigned char *file = 0, *arena = 0, *out = 0;
+	unsigned int cap, est, sw, sh, tw, th, pixbytes, total, i;
+	unsigned long long sx, sy, scale, dw, dh;
+	int n, r;
+
+	if (u_stat(path, &st) != 0 || st.is_dir || st.size == 0) {
+		set_status("Cannot read that image", 1);
+		return;
+	}
+	if (st.size >= WALL_FILE_CAP) {
+		set_status("Image is larger than 4 MB", 1);
+		return;
+	}
+	cap = st.size + 512;      /* a FAT read may round up to a sector */
+	file = (unsigned char *)malloc(cap);
+	if (!file) {
+		set_status("Not enough memory for the image", 1);
+		return;
+	}
+	n = img_read_file(path, file, cap);
+	if (n < 0) {
+		set_status(img_error_string(n), 1);
+		goto out;
+	}
+	r = img_sniff(file, (unsigned int)n, &info);
+	if (r != 0) {
+		set_status(img_error_string(r), 1);
+		goto out;
+	}
+	est = img_estimate(&info);
+	if (est == 0xFFFFFFFFu || est > WALL_HEAP_CAP) {
+		set_status("Image needs too much memory", 1);
+		goto out;
+	}
+	arena = (unsigned char *)malloc(est);
+	if (!arena) {
+		set_status("Not enough memory for the image", 1);
+		goto out;
+	}
+	img_mem_init(&mem, arena, est);
+	memset(&opt, 0, sizeof(opt));
+	r = img_decode(file, (unsigned int)n, &opt, &mem, &img);
+	if (r != 0) {
+		set_status(img_error_string(r), 1);
+		goto out;
+	}
+	if (u_screen_size(&sw, &sh) != 0 || !sw || !sh) {
+		set_status("Cannot read the screen size", 1);
+		goto out;
+	}
+	tw = sw;
+	th = sh;
+	if (tw > WM_WALLPAPER_MAX_W) {
+		th = (unsigned int)((unsigned long long)th *
+				    WM_WALLPAPER_MAX_W / tw);
+		tw = WM_WALLPAPER_MAX_W;
+	}
+	if (th > WM_WALLPAPER_MAX_H) {
+		tw = (unsigned int)((unsigned long long)tw *
+				    WM_WALLPAPER_MAX_H / th);
+		th = WM_WALLPAPER_MAX_H;
+	}
+	if (!tw)
+		tw = 1;
+	if (!th)
+		th = 1;
+	pixbytes = tw * th * 2u;
+	total = sizeof(*h) + pixbytes;
+	out = (unsigned char *)malloc(total);
+	if (!out) {
+		set_status("Not enough memory for the wallpaper", 1);
+		goto out;
+	}
+	memset(out, 0, total);
+	h = (struct wm_wallpaper_hdr *)out;
+	for (i = 0; i < sizeof(h->magic); i++)
+		h->magic[i] = WM_WALLPAPER_MAGIC[i];
+	h->width = tw;
+	h->height = th;
+
+	sx = (((unsigned long long)tw << 16) + img.w - 1) / img.w;
+	sy = (((unsigned long long)th << 16) + img.h - 1) / img.h;
+	scale = sx > sy ? sx : sy;
+	if (!scale)
+		scale = 1;
+	dw = ((unsigned long long)img.w * scale) >> 16;
+	dh = ((unsigned long long)img.h * scale) >> 16;
+	memset(&b, 0, sizeof(b));
+	b.dst = (unsigned short *)(out + sizeof(*h));
+	b.dst_w = (int)tw;
+	b.dst_h = (int)th;
+	b.clip_w = (int)tw;
+	b.clip_h = (int)th;
+	b.x = ((int)tw - (int)dw) / 2;
+	b.y = ((int)th - (int)dh) / 2;
+	b.scale = (unsigned int)scale;
+	img_draw(&img, &b);
+
+	r = u_syscall3(SYS_WRITE_FILE, (int)WM_WALLPAPER_DATA, (int)out,
+		       (int)total);
+	if (r < 0) {
+		struct sys_stat dst;
+
+		/* Only fall back to the RAM copy when there is no data
+		 * volume at all.  Writing the share copy while an older
+		 * /data image exists would make the WM load the stale one. */
+		if (u_stat("/data", &dst) == 0 && dst.is_dir) {
+			set_status("Cannot save the wallpaper to /data", 1);
+			goto out;
+		}
+		r = u_syscall3(SYS_WRITE_FILE, (int)WM_WALLPAPER_SHARE,
+			       (int)out, (int)total);
+	}
+	if (r < 0) {
+		set_status("Cannot save the wallpaper", 1);
+		goto out;
+	}
+	u_syscall1(SYS_WM_WALLPAPER, 1);
+	wallpaper_present = 1;
+	set_status("Wallpaper set", 0);
+out:
+	free(out);
+	free(arena);
+	free(file);
+}
+
+static void draw_appearance(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r;
+	char line[96], *p;
+	int i, y = *yy;
+
+	if (picker_mode) {
+		draw_picker(area, yy);
+		return;
+	}
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Desktop colour", 0, 0);
+	y += SECTION_H;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Used when no wallpaper image is installed.",
+		       ui.theme.text_dim);
+	y += 24;
+	for (i = 0; i < NBG; i++) {
+		char sub[16], *sp = sub;
+
+		sp = s_put(sp, "#");
+		{
+			static const char hex[] = "0123456789abcdef";
+			unsigned int rgb = bg_choices[i].rgb;
+			int k;
+
+			for (k = 5; k >= 0; k--)
+				*sp++ = hex[(rgb >> (k * 4)) & 15];
+		}
+		*sp = '\0';
+		r = (struct ngui_rect){ area.x, y, area.w, 36 };
+		if (settings_row(ID_BG_BASE + i, r, bg_choices[i].name, sub,
+				 prefs.bg_rgb == bg_choices[i].rgb ?
+				 "Selected" : "",
+				 prefs.bg_rgb == bg_choices[i].rgb ? 1 : 0,
+				 (int)bg_choices[i].rgb))
+			request_action(A_BG, i);
+		y += 38;
+	}
+
+	y += GAP;
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Wallpaper", 0, 0);
+	y += SECTION_H;
+	if (wallpaper_present) {
+		p = s_put(line, "Image: ");
+		p = s_put(p, wallpaper_source);
+		*p = '\0';
+		ngui_text_utf8(&ui, area.x + 10, y, line, ui.theme.text_dim);
+		y += 24;
+		ngui_text_utf8(&ui, area.x + 10, y,
+			       "The image covers the desktop colour.",
+			       ui.theme.text_dim);
+		y += 24;
+	} else {
+		ngui_text_utf8(&ui, area.x + 10, y,
+			       "No wallpaper image is installed.",
+			       ui.theme.text_dim);
+		y += 24;
+	}
+	r = (struct ngui_rect){ area.x + 10, y, 150, 28 };
+	if (ngui_button(&ui, ID_WALL_CHOOSE, r,
+			wallpaper_present ? "Change image..." :
+					    "Choose image..."))
+		request_action(A_WALL_CHOOSE, 0);
+	if (wallpaper_present) {
+		r.x += 160;
+		r.w = 110;
+		if (ngui_button(&ui, ID_WALL_REMOVE, r, "Remove"))
+			request_action(A_WALL_REMOVE, 0);
+	}
+	y += 28 + GAP;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Images are scaled to cover the screen and stored on the",
+		       ui.theme.text_dim);
+	y += 20;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "data volume (or /share without one).",
+		       ui.theme.text_dim);
+	y += 22;
+	*yy = y;
+}
+
+static void draw_picker(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r;
+	struct ngui_row row;
+	char size[24];
+	int i, y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, 22 };
+	ngui_text_px(&ui, r.x, r.y, "Choose a wallpaper image", 24,
+		     ui.theme.text, 14, 1, 0, 0);
+	y += 26;
+	ngui_text_ellipsis_utf8(&ui, (struct ngui_rect){ area.x, y,
+							area.w, 18 },
+				area.x, y, pick_path, ui.theme.text_dim);
+	y += 24;
+
+	r = (struct ngui_rect){ area.x, y, 70, 26 };
+	if (ngui_button(&ui, ID_PICK_UP, r, "Up"))
+		request_action(A_PICK_UP, 0);
+	r.x += 80;
+	r.w = 90;
+	if (ngui_button(&ui, ID_PICK_CANCEL, r, "Cancel"))
+		request_action(A_PICK_CANCEL, 0);
+	y += 26 + GAP;
+
+	picker_scroll.content_h = pick_count * PICK_ROW_H;
+	picker_scroll.view_h = area.y + area.h - y;
+	{
+		struct ngui_rect list_r = { area.x, y, area.w,
+					    area.y + area.h - y };
+
+		ngui_scroll_begin(&ui, list_r, &picker_scroll);
+		ngui_scroll_wheel(&ui, list_r, &picker_scroll);
+		ngui_scroll_keys(&ui, &picker_scroll);
+		y -= picker_scroll.offset;
+		if (!pick_count) {
+			ngui_text_utf8(&ui, area.x + 10, y,
+				       "No folders or image files here",
+				       ui.theme.text_dim);
+			y += PICK_ROW_H;
+		}
+		for (i = 0; i < pick_count; i++) {
+			r = (struct ngui_rect){ area.x,
+						y + i * PICK_ROW_H, area.w,
+						PICK_ROW_H };
+			if (r.y + r.h <= area.y || r.y >= area.y + area.h)
+				continue;
+			if (pick_dirs[i]) {
+				s_copy(size, "Folder", sizeof(size));
+			} else {
+				format_size(size, pick_sizes[i]);
+			}
+			row.title = pick_names[i];
+			row.subtitle = size;
+			row.trailing = 0;
+			row.bars = -1;
+			row.selected = 0;
+			if (ngui_list_row_utf8(&ui, ID_PICK_ROW_BASE + i,
+					       r, &row))
+				request_action(A_PICK_ROW, i);
+		}
+		ngui_scroll_end(&ui, list_r, &picker_scroll);
+	}
+	*yy = area.y + area.h;
+}
+
+/* ------------------------------------------------------------------ */
+/* Windows and About                                                   */
+
+static void draw_windows(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r;
+	int y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Window manager", 0, 0);
+	y += SECTION_H;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Changes apply immediately and are saved for the next "
+		       "boot.", ui.theme.text_dim);
+	y += 26;
+
+	r = (struct ngui_rect){ area.x, y, area.w, 44 };
+	if (settings_row(ID_WIN_SHADOW, r, "Window shadows",
+			 "Soft drop shadow around normal windows",
+			 prefs.shadow ? "On" : "Off", prefs.shadow ? 1 : 0, -1))
+		request_action(A_WIN_SHADOW, 0);
+	y += 46;
+	r = (struct ngui_rect){ area.x, y, area.w, 44 };
+	if (settings_row(ID_WIN_SNAP, r, "Snap windows",
+			 "Drag a title bar to a screen edge to snap it",
+			 prefs.snap ? "On" : "Off", prefs.snap ? 1 : 0, -1))
+		request_action(A_WIN_SNAP, 0);
+	y += 46;
+	r = (struct ngui_rect){ area.x, y, area.w, 44 };
+	if (settings_row(ID_WIN_RESIST, r, "Edge resistance",
+			 "Hold a window briefly at screen and window edges",
+			 prefs.resist ? "On" : "Off", prefs.resist ? 1 : 0,
+			 -1))
+		request_action(A_WIN_RESIST, 0);
+	y += 46 + GAP;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Double-clicking a title bar still maximizes or "
+		       "restores a window.", ui.theme.text_dim);
+	y += 22;
+	*yy = y;
+}
+
+static void draw_about(struct ngui_rect area, int *yy)
+{
+	struct ngui_rect r;
+	struct sys_meminfo mi;
+	struct sys_cputemp ct;
+	char value[64], *p;
+	unsigned int sw = 0, sh = 0, secs, h, m, s;
+	int y = *yy;
+
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "System", 0, 0);
+	y += SECTION_H;
+
+	p = value;
+	p = s_put(p, OS_NAME);
+	p = s_put(p, " ");
+	p = s_put(p, OS_VERSION);
+	*p = '\0';
+	info_row(area, &y, "Operating system", value);
+
+	u_screen_size(&sw, &sh);
+	p = value;
+	p = s_put_dec(p, sw);
+	p = s_put(p, " x ");
+	p = s_put_dec(p, sh);
+	*p = '\0';
+	info_row(area, &y, "Display", value);
+
+	secs = u_ticks_ms() / 1000;
+	h = secs / 3600;
+	m = (secs / 60) % 60;
+	s = secs % 60;
+	p = value;
+	p = s_put_dec(p, h);
+	p = s_put(p, "h ");
+	p = s_put_dec(p, m);
+	p = s_put(p, "m ");
+	p = s_put_dec(p, s);
+	p = s_put(p, "s");
+	*p = '\0';
+	info_row(area, &y, "Uptime", value);
+
+	if (u_syscall1(SYS_MEMINFO, (int)&mi) == 0) {
+		p = value;
+		p = s_put_dec(p, mi.total_kb / 1024u);
+		p = s_put(p, " MB");
+		*p = '\0';
+		info_row(area, &y, "Memory", value);
+		p = value;
+		p = s_put_dec(p, (mi.free_pages * mi.page_size) /
+			      (1024u * 1024u));
+		p = s_put(p, " MB");
+		*p = '\0';
+		info_row(area, &y, "Free", value);
+	}
+
+	if (u_cpu_temp(&ct) == 0 && ct.temp_c >= 0) {
+		p = value;
+		p = s_put_dec(p, (unsigned int)ct.temp_c);
+		p = s_put(p, " C");
+		*p = '\0';
+		info_row(area, &y, "CPU temperature", value);
+	}
+
+	y += GAP;
+	r = (struct ngui_rect){ area.x, y, area.w, SECTION_H };
+	ngui_section(&ui, r, "Settings", 0, 0);
+	y += SECTION_H;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Window preferences: /data/SETTINGS.CFG",
+		       ui.theme.text_dim);
+	y += 22;
+	ngui_text_utf8(&ui, area.x + 10, y,
+		       "Without a data volume the RAM copy is "
+		       "/share/settings.cfg.", ui.theme.text_dim);
+	y += 22;
+	*yy = y;
+}
+
+/* ------------------------------------------------------------------ */
+/* Frame                                                               */
+
+static int sidebar_width(void)
+{
+	return ui.w < 620 ? SIDEBAR_MIN_W : SIDEBAR_W;
+}
+
+static void settings_draw_frame(void)
+{
+	struct ngui_rect all = { 0, 0, ui.w, ui.h };
+	struct ngui_rect body = all, side, header, content, footer;
+	int side_w = sidebar_width();
+	int i, y;
+
+	ngui_fill_rect(&ui, all, ui.theme.bg);
+	side = ngui_cut_left(&body, side_w);
+	ngui_fill_rect(&ui, side, ui.theme.panel);
+
+	ngui_text_px(&ui, side.x + 14, side.y + 14, "Settings",
+		     s_len("Settings"), ui.theme.text, 20, 1, 0, 0);
+	ngui_text(&ui, side.x + 14, side.y + 40, OS_NAME " " OS_VERSION,
+		  ui.theme.text_dim);
+
+	y = side.y + 70;
+	for (i = 0; i < SEC_COUNT; i++) {
+		struct ngui_rect r = { side.x + 8, y, side.w - 16, NAV_ROW_H };
+
+		if (settings_row(ID_NAV_BASE + i, r, sections[i].label,
+				 sections[i].subtitle, 0,
+				 cur_section == i ? 1 : 0, -1))
+			request_action(A_NAV, i);
+		y += NAV_ROW_H + NAV_GAP;
+	}
+
+	header = ngui_cut_top(&body, HEADER_H);
+	ngui_text_px(&ui, header.x + 16, header.y + 8, sections[cur_section].label,
+		     s_len(sections[cur_section].label), ui.theme.text, 20, 1,
+		     0, 0);
+	ngui_text_utf8(&ui, header.x + 16, header.y + 32,
+		       sections[cur_section].subtitle, ui.theme.text_dim);
+	ngui_fill_rect(&ui, (struct ngui_rect){ header.x + 16,
+						header.y + HEADER_H - 1,
+						header.w - 32, 1 },
+		       ui.theme.panel_alt);
+
+	footer = ngui_cut_bottom(&body, FOOTER_H);
+	ngui_fill_rect(&ui, footer, ui.theme.panel);
+	ngui_fill_rect(&ui, (struct ngui_rect){ footer.x, footer.y,
+						footer.w, 1 },
+		       ui.theme.panel_alt);
+	if (status[0] && status_until &&
+	    (int)(u_ticks_ms() - status_until) < 0) {
+		ngui_text_ellipsis_utf8(&ui,
+			(struct ngui_rect){ footer.x + 12, footer.y + 6,
+					    footer.w - 24, 18 },
+			footer.x + 12, footer.y + 6, status,
+			status_error ? ui.theme.error : ui.theme.success);
+	} else {
+		ngui_text_utf8(&ui, footer.x + 12, footer.y + 6,
+			       "Changes are saved automatically.",
+			       ui.theme.text_dim);
+	}
+
+	content = body;
+	content.x += 16;
+	content.w -= 24;
+	content.y += 6;
+	content.h -= 8;
+	{
+		int picker_only = (cur_section == SEC_APPEARANCE &&
+				   picker_mode != 0);
+
+		if (picker_only) {
+			/* The picker has its own scroll pane; do not let the
+			 * outer pane eat the wheel or PgUp/PgDn keys. */
+			content_scroll.offset = 0;
+			ngui_push_clip(&ui, content);
+			y = content.y;
+		} else {
+			ngui_scroll_begin(&ui, content, &content_scroll);
+			ngui_scroll_wheel(&ui, content, &content_scroll);
+			ngui_scroll_keys(&ui, &content_scroll);
+			y = content.y - content_scroll.offset;
+		}
+		switch (cur_section) {
+		case SEC_NETWORK:
+			draw_network(content, &y);
+			break;
+		case SEC_POWER:
+			draw_power(content, &y);
+			break;
+		case SEC_DATETIME:
+			draw_datetime(content, &y);
+			break;
+		case SEC_APPEARANCE:
+			draw_appearance(content, &y);
+			break;
+		case SEC_WINDOWS:
+			draw_windows(content, &y);
+			break;
+		case SEC_ABOUT:
+			draw_about(content, &y);
+			break;
+		default:
+			break;
+		}
+		if (picker_only) {
+			ngui_pop_clip(&ui);
+		} else {
+			content_scroll.content_h =
+				y + content_scroll.offset - content.y + GAP;
+			ngui_scroll_end(&ui, content, &content_scroll);
+		}
+	}
+}
+
+/* ------------------------------------------------------------------ */
+/* Actions                                                             */
+
+static void set_section(int s)
+{
+	if (s < 0 || s >= SEC_COUNT)
+		return;
+	if (s == cur_section)
+		return;
+	cur_section = s;
+	content_scroll.offset = 0;
+	picker_mode = 0;
+	if (s == SEC_NETWORK && !devs_loaded) {
+		set_status("Loading network devices...", 0);
+		paint_current();
+		load_devices();
+		set_status("", 0);
+		if (wifi_present && wst.state < SYS_WIFI_ST_ASSOC)
+			start_scan();
+	}
+	if (s == SEC_DATETIME)
+		load_datetime_fields(0);
+	if (s == SEC_APPEARANCE)
+		wallpaper_refresh();
+	ngui_set_focus(&ui, 0);
+	ngui_invalidate(&ui);
+}
+
+static void handle_action(void)
+{
+	int a = pending_action, arg = pending_arg;
+
+	pending_action = A_NONE;
+	pending_arg = 0;
+	switch (a) {
+	case A_NAV:
+		set_section(arg);
+		break;
+	case A_REFRESH:
+		set_status("Refreshing network devices...", 0);
+		load_devices();
+		set_status("Device list refreshed", 0);
+		ngui_invalidate(&ui);
+		break;
+	case A_SCAN:
+		start_scan();
+		break;
+	case A_DISCONNECT:
+		u_wifi(SYS_WIFI_DISCONNECT, 0, 0);
+		load_status();
+		set_status("WiFi disconnected", 0);
+		ngui_invalidate(&ui);
+		break;
+	case A_DEV:
+		select_device(arg);
+		break;
+	case A_BSS:
+		select_bss(arg);
+		break;
+	case A_SAVED:
+		load_saved();
+		content_scroll.offset = 0;
+		net_view = NET_SAVED;
+		ngui_invalidate(&ui);
+		break;
+	case A_SAVED_BACK:
+		net_view = NET_MAIN;
+		content_scroll.offset = 0;
+		ngui_invalidate(&ui);
+		break;
+	case A_FORGET:
+		if (arg >= 0 && arg < nsaved) {
+			if (wifi_store_forget(saved[arg].ssid,
+					      saved[arg].ssid_len) > 0) {
+				load_saved();
+				set_status("Saved network removed", 0);
+			} else {
+				set_status("Could not remove the saved network", 1);
+			}
+		}
+		ngui_invalidate(&ui);
+		break;
+	case A_PASS_OK: {
+		char pass[65];
+		unsigned int i, n;
+
+		ngui_input_value(&pass_in, pass, sizeof(pass));
+		n = s_len(pass);
+		if (n == 0) {
+			set_status("Enter the WPA2 passphrase", 1);
+		} else if (n < 8 || n > 63) {
+			int hex = n == 64;
+
+			if (hex) {
+				unsigned int j;
+
+				for (j = 0; j < n; j++) {
+					char c = pass[j];
+
+					if (!((c >= '0' && c <= '9') ||
+					      (c >= 'a' && c <= 'f') ||
+					      (c >= 'A' && c <= 'F'))) {
+						hex = 0;
+						break;
+					}
+				}
+			}
+			if (hex)
+				start_connect(pass);
+			else
+				set_status("Use 8-63 characters or 64 hex digits",
+					   1);
+		} else {
+			start_connect(pass);
+		}
+		for (i = 0; i < sizeof(pass); i++)
+			((volatile char *)pass)[i] = 0;
+		break;
+	}
+	case A_PASS_CANCEL:
+	case A_CONN_CANCEL:
+		if (net_view == NET_CONNECT)
+			cancel_connect();
+		else {
+			net_view = NET_MAIN;
+			set_status("", 0);
+			ngui_invalidate(&ui);
+		}
+		break;
+	case A_POWER:
+		set_power_mode(arg);
+		break;
+	case A_DATE_SET:
+		apply_datetime();
+		break;
+	case A_DATE_NOW:
+		load_datetime_fields(1);
+		set_status("Date and time reloaded", 0);
+		break;
+	case A_DATE_NTP:
+		sync_ntp();
+		break;
+	case A_BG:
+		if (arg >= 0 && arg < NBG) {
+			prefs.bg_rgb = bg_choices[arg].rgb;
+			commit_prefs("Background colour saved");
+		}
+		break;
+	case A_WALL_CHOOSE: {
+		struct sys_stat st;
+
+		picker_mode = 1;
+		content_scroll.offset = 0;
+		if (u_stat("/data", &st) == 0 && st.is_dir)
+			load_picker_dir("/data");
+		else if (u_stat("/share", &st) == 0 && st.is_dir)
+			load_picker_dir("/share");
+		else
+			load_picker_dir("/");
+		ngui_invalidate(&ui);
+		break;
+	}
+	case A_WALL_REMOVE:
+		u_syscall1(SYS_UNLINK, (int)WM_WALLPAPER_DATA);
+		u_syscall1(SYS_UNLINK, (int)WM_WALLPAPER_SHARE);
+		u_syscall1(SYS_WM_WALLPAPER, 1);
+		wallpaper_refresh();
+		if (wallpaper_present)
+			set_status("The wallpaper on the data volume could not be removed",
+				   1);
+		else
+			set_status("Wallpaper removed; the desktop colour is visible",
+				   0);
+		ngui_invalidate(&ui);
+		break;
+	case A_PICK_UP: {
+		char parent[PICK_PATH_MAX];
+
+		pick_parent(parent, sizeof(parent));
+		load_picker_dir(parent);
+		ngui_invalidate(&ui);
+		break;
+	}
+	case A_PICK_CANCEL:
+		picker_mode = 0;
+		ngui_invalidate(&ui);
+		break;
+	case A_PICK_ROW:
+		picker_activate(arg);
+		break;
+	case A_WIN_SHADOW:
+		prefs.shadow = prefs.shadow ? 0 : 1;
+		commit_prefs(prefs.shadow ? "Window shadows enabled" :
+					    "Window shadows disabled");
+		break;
+	case A_WIN_SNAP:
+		prefs.snap = prefs.snap ? 0 : 1;
+		commit_prefs(prefs.snap ? "Edge snapping enabled" :
+					  "Edge snapping disabled");
+		break;
+	case A_WIN_RESIST:
+		prefs.resist = prefs.resist ? 0 : 1;
+		commit_prefs(prefs.resist ? "Edge resistance enabled" :
+					    "Edge resistance disabled");
+		break;
+	default:
+		break;
+	}
+}
+
+static void check_section_request(void)
+{
+	char buf[24];
+	unsigned int now_ms = u_ticks_ms();
+	int n, i;
+
+	if (now_ms - last_request_ms < 250)
+		return;
+	last_request_ms = now_ms;
+	n = u_read_file(WM_SETTINGS_REQUEST, buf, sizeof(buf) - 1);
+	if (n <= 0)
+		return;
+	buf[n] = '\0';
+	while (n > 0 && (buf[n - 1] == '\n' || buf[n - 1] == '\r' ||
+			 buf[n - 1] == ' '))
+		buf[--n] = '\0';
+	/* Consume the request: the WM writes a fresh file for every pill
+	 * click, and a stale one must not pull the user back after they
+	 * picked another section by hand. */
+	u_syscall1(SYS_UNLINK, (int)WM_SETTINGS_REQUEST);
+	if (!buf[0])
+		return;
+	for (i = 0; i < SEC_COUNT; i++) {
+		if (s_eq(buf, sections[i].arg)) {
+			if (i != cur_section)
+				set_section(i);
+			break;
+		}
+	}
+}
+
+void _start(const char *arg)
+{
+	struct win_info wi;
+	unsigned int sw = 0, sh = 0;
+	int w, h;
+
+	u_screen_size(&sw, &sh);
+	if (!sw || !sh) {
+		sw = 1024;
+		sh = 768;
+	}
+	w = (int)sw - 40;
+	h = (int)sh - 80;
+	if (w > 900)
+		w = 900;
+	if (h > 620)
+		h = 620;
+	if (w < 460)
+		w = 460;
+	if (h < 360)
+		h = 360;
+
+	prefs_defaults();
+	if (u_wm_get_prefs(&prefs) != 0)
+		prefs_defaults();
+	/* The WM may not have reached the data volume yet (the first boot
+	 * or a quick launch); prefer the persisted file when it is valid. */
+	if (prefs_file_load() == 0)
+		u_wm_set_prefs(&prefs);
+
+	cur_section = section_from_name(arg);
+	if (u_win_create((unsigned int)w, (unsigned int)h, "Settings", &wi) != 0) {
+		u_puts("settings: no graphics window\n");
+		u_exit(1);
+	}
+	ngui_init(&ui, (unsigned short *)wi.fb, (int)wi.width, (int)wi.height);
+	ngui_font_attach(&ui);
+	pass_in.secret = 1;
+	pass_in.placeholder = "WPA2 passphrase";
+	ntp_in.placeholder = "pool.ntp.org";
+	if (cur_section == SEC_NETWORK) {
+		set_status("Loading network devices...", 0);
+		paint_current();
+	}
+	load_status();
+	load_saved();
+	wallpaper_refresh();
+	if (cur_section == SEC_NETWORK) {
+		load_devices();
+		set_status("", 0);
+		if (wifi_present && wst.state < SYS_WIFI_ST_ASSOC)
+			start_scan();
+	}
+	if (cur_section == SEC_DATETIME)
+		load_datetime_fields(0);
+
+	last_status_ms = u_ticks_ms();
+
+	for (;;) {
+		static int first_frame = 1;
+		unsigned int now_ms = u_ticks_ms();
+
+		drain_tty();
+		poll_scan();
+		poll_connect();
+		check_section_request();
+		if (now_ms - last_status_ms >= 1000) {
+			last_status_ms = now_ms;
+			load_status();
+			if (cur_section == SEC_DATETIME)
+				load_datetime_fields(0);
+			ngui_invalidate(&ui);
+		}
+		if (status_until && (int)(now_ms - status_until) >= 0) {
+			status[0] = '\0';
+			status_until = 0;
+			ngui_invalidate(&ui);
+		}
+
+		if (ngui_begin(&ui)) {
+			settings_draw_frame();
+			ngui_end(&ui);
+			if (first_frame) {
+				first_frame = 0;
+				ngui_invalidate(&ui);
+			}
+		}
+		if (pending_action)
+			handle_action();
+
+		if (ngui_key_peek(&ui) == NGUI_KEY_ESC) {
+			ngui_key(&ui);
+			if (picker_mode) {
+				picker_mode = 0;
+				ngui_invalidate(&ui);
+			} else if (net_view != NET_MAIN) {
+				net_view = NET_MAIN;
+				set_status("", 0);
+				ngui_invalidate(&ui);
+			} else if (ui.focus == 0) {
+				quit = 1;
+			}
+		}
+		if (quit)
+			break;
+		u_sleep_ms(20);
+	}
+	ngui_font_detach(&ui);
+	u_win_close();
+	u_exit(0);
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 981 - 67
user/apps/wm/ucmd_wm.c


+ 435 - 5
user/lib/uwm/uwm_lib.c

@@ -82,14 +82,17 @@ static const unsigned char *icon_mask(unsigned int icon)
 		icon * UWM_ICON_BYTES;
 }
 
-/* Tint a coverage mask with `rgb` and blend it over the canvas. */
-int usurf_icon(struct usurf *s, int x, int y, enum uwm_icon icon,
-	       unsigned int rgb)
+/* Tint a coverage mask with `rgb` and blend it over the canvas, clipped to
+ * the rectangle (cx,cy,cw,ch). */
+int usurf_icon_clip(struct usurf *s, int x, int y, enum uwm_icon icon,
+		    unsigned int rgb, int cx, int cy,
+		    unsigned int cw, unsigned int ch)
 {
 	const unsigned char *m = icon_mask((unsigned int)icon);
 	unsigned int sr = (rgb >> 16) & 0xFF;
 	unsigned int sg = (rgb >> 8) & 0xFF;
 	unsigned int sb = rgb & 0xFF;
+	int x1 = cx + (int)cw, y1 = cy + (int)ch;
 	int i, j;
 
 	if (!s || !s->px || !m)
@@ -98,14 +101,15 @@ int usurf_icon(struct usurf *s, int x, int y, enum uwm_icon icon,
 		int py = y + j;
 		unsigned char *row;
 
-		if (py < 0 || py >= (int)s->h)
+		if (py < cy || py >= y1 || py < 0 || py >= (int)s->h)
 			continue;
 		row = s->px + (unsigned long)py * s->pitch;
 		for (i = 0; i < UWM_ICON_PX; i++) {
 			int px = x + i, a = m[j * UWM_ICON_PX + i];
 			unsigned int dr, dg, db;
 
-			if (!a || px < 0 || px >= (int)s->w)
+			if (!a || px < cx || px >= x1 ||
+			    px < 0 || px >= (int)s->w)
 				continue;
 			usurf_pixels++;
 			if (s->bpp == 16) {
@@ -142,6 +146,432 @@ int usurf_icon(struct usurf *s, int x, int y, enum uwm_icon icon,
 	return 1;
 }
 
+/* The same without clipping, i.e. clipped to the whole canvas. */
+int usurf_icon(struct usurf *s, int x, int y, enum uwm_icon icon,
+	       unsigned int rgb)
+{
+	if (!s)
+		return 0;
+	return usurf_icon_clip(s, x, y, icon, rgb, 0, 0, s->w, s->h);
+}
+
+/* ---- Window drop shadow ------------------------------------------------ */
+#define SHADOW_FALLOFF_N 11
+static const unsigned char shadow_falloff[SHADOW_FALLOFF_N] = {
+	0, 120, 110, 100, 90, 80, 69, 58, 46, 33, 20
+};
+
+/* Darken one band outside (wx,wy)-(wx1,wy1).  The alpha comes from the
+ * rounded distance to the window edge (max + 0.4 * min), so the four bands
+ * together form a soft ring whose corners fade in a curve instead of a
+ * square corner, without touching the window interior. */
+static void shadow_band(struct usurf *s, int x0, int y0, int x1, int y1,
+			int wx, int wy, int wx1, int wy1, int spread,
+			int bytes)
+{
+	int x, y;
+
+	for (y = y0; y < y1; y++) {
+		unsigned char *row = s->px + (unsigned long)y * s->pitch;
+		int dy = 0;
+
+		if (y < wy)
+			dy = wy - y;
+		else if (y >= wy1)
+			dy = y - wy1 + 1;
+		for (x = x0; x < x1; x++) {
+			int dx = 0, d, lo, hi;
+			unsigned int a, ia;
+			unsigned char *p;
+
+			if (x < wx)
+				dx = wx - x;
+			else if (x >= wx1)
+				dx = x - wx1 + 1;
+			lo = dx < dy ? dx : dy;
+			hi = dx < dy ? dy : dx;
+			d = hi + ((lo * 13) >> 5);
+			if (d <= 0 || d > spread)
+				continue;
+			if (d >= SHADOW_FALLOFF_N)
+				d = SHADOW_FALLOFF_N - 1;
+			a = shadow_falloff[d];
+			if (!a)
+				continue;
+			ia = 256 - a;
+			usurf_pixels++;
+			if (s->bpp == 16) {
+				unsigned short *q = (unsigned short *)row + x;
+				unsigned int v = *q;
+				unsigned int r = ((((v >> 11) & 0x1F) * ia)
+						  + 128) >> 8;
+				unsigned int g = ((((v >> 5) & 0x3F) * ia)
+						  + 128) >> 8;
+				unsigned int b = (((v & 0x1F) * ia)
+						  + 128) >> 8;
+
+				*q = (unsigned short)((r << 11) | (g << 5) | b);
+			} else {
+				p = row + x * bytes;
+				p[0] = (unsigned char)((p[0] * ia + 128) >> 8);
+				p[1] = (unsigned char)((p[1] * ia + 128) >> 8);
+				p[2] = (unsigned char)((p[2] * ia + 128) >> 8);
+				if (s->bpp == 32)
+					p[3] = 0xFF;
+			}
+		}
+	}
+}
+
+/* A soft drop shadow around a window rectangle: `spread` pixels outward,
+ * strongest next to the window.  The window interior is never touched and
+ * the whole ring is clipped to (cx,cy,cw,ch); callers pass the current
+ * damage rectangle so a partial repaint only darkens pixels it owns. */
+void usurf_window_shadow(struct usurf *s, int wx, int wy, int ww, int wh,
+			 int spread, int cx, int cy,
+			 unsigned int cw, unsigned int ch)
+{
+	int wx1 = wx + ww, wy1 = wy + wh;
+	int x0, y0, x1, y1, ix0, iy0, ix1, iy1;
+	int bytes;
+
+	if (!s || !s->px || ww <= 0 || wh <= 0 || spread <= 0)
+		return;
+	if (s->bpp != 16 && s->bpp != 24 && s->bpp != 32)
+		return;
+	bytes = (int)(s->bpp / 8);
+	x0 = wx - spread;
+	y0 = wy - spread;
+	x1 = wx1 + spread;
+	y1 = wy1 + spread;
+	ix0 = cx;
+	iy0 = cy;
+	ix1 = cx + (int)cw;
+	iy1 = cy + (int)ch;
+	if (ix0 < 0) ix0 = 0;
+	if (iy0 < 0) iy0 = 0;
+	if (ix1 > (int)s->w) ix1 = (int)s->w;
+	if (iy1 > (int)s->h) iy1 = (int)s->h;
+	if (x0 < ix0) x0 = ix0;
+	if (y0 < iy0) y0 = iy0;
+	if (x1 > ix1) x1 = ix1;
+	if (y1 > iy1) y1 = iy1;
+	if (x1 <= x0 || y1 <= y0)
+		return;
+	/* Corners belong to the top and bottom bands. */
+	shadow_band(s, x0, y0, x1, wy < y1 ? wy : y1,
+		    wx, wy, wx1, wy1, spread, bytes);
+	shadow_band(s, x0, wy1 > y0 ? wy1 : y0, x1, y1,
+		    wx, wy, wx1, wy1, spread, bytes);
+	{
+		int by0 = wy > y0 ? wy : y0;
+		int by1 = wy1 < y1 ? wy1 : y1;
+
+		shadow_band(s, x0, by0, wx < x1 ? wx : x1, by1,
+			    wx, wy, wx1, wy1, spread, bytes);
+		shadow_band(s, wx1 > x0 ? wx1 : x0, by0, x1, by1,
+			    wx, wy, wx1, wy1, spread, bytes);
+	}
+}
+
+/* ---- Full-colour app icons -------------------------------------------- */
+#define UWM_APP_BYTES (APP_ICON_PX * APP_ICON_PX * 3u)
+
+static unsigned char app_icon_data[sizeof(struct app_icon_file_hdr) +
+				   APP_ICON_COUNT * UWM_APP_BYTES + 512];
+static int app_icon_state;      /* 0 untried, 1 loaded, -1 unavailable */
+static unsigned int app_icon_count;
+
+static void app_icon_load(void)
+{
+	const struct app_icon_file_hdr *h =
+		(const struct app_icon_file_hdr *)app_icon_data;
+	unsigned int max = sizeof(app_icon_data) - 512, have;
+	int n, i;
+
+	app_icon_state = -1;
+	/* The FAT path may write a final partial sector past `max`; the
+	 * buffer keeps 512 bytes of slack for it. */
+	n = u_syscall3(SYS_READ_FILE, (int)APP_ICON_BUNDLE_PATH,
+		       (int)app_icon_data, (int)max);
+	if (n < (int)sizeof(*h))
+		return;
+	for (i = 0; i < 8; i++)
+		if (h->magic[i] != APP_ICON_FILE_MAGIC[i])
+			return;
+	if (h->size != APP_ICON_PX)
+		return;
+	have = ((unsigned int)n - sizeof(*h)) / UWM_APP_BYTES;
+	if (have > h->count)
+		have = h->count;
+	if (have > APP_ICON_COUNT)
+		have = APP_ICON_COUNT;
+	app_icon_count = have;
+	app_icon_state = 1;
+}
+
+static const unsigned char *app_icon_src(unsigned int icon)
+{
+	if (app_icon_state == 0)
+		app_icon_load();
+	if (app_icon_state != 1 || icon >= app_icon_count)
+		return 0;
+	return app_icon_data + sizeof(struct app_icon_file_hdr) +
+		icon * UWM_APP_BYTES;
+}
+
+/* Premultiplied source-over: dst = src + dst * (255 - a) / 255. */
+static void blend_premul_px(struct usurf *s, int x, int y,
+			    unsigned int r, unsigned int g, unsigned int b,
+			    unsigned int a)
+{
+	unsigned char *row;
+	unsigned int dr, dg, db;
+
+	if (!a || x < 0 || y < 0 || (unsigned int)x >= s->w ||
+	    (unsigned int)y >= s->h)
+		return;
+	usurf_pixels++;
+	row = s->px + (unsigned long)(unsigned int)y * s->pitch;
+	if (s->bpp == 16) {
+		unsigned short *d = (unsigned short *)row + (unsigned int)x;
+		unsigned int v = *d;
+
+		dr = ((v >> 11) & 0x1F) << 3;
+		dg = ((v >> 5) & 0x3F) << 2;
+		db = (v & 0x1F) << 3;
+		if (a == 255) {
+			dr = r; dg = g; db = b;
+		} else {
+			dr = r + (dr * (255 - a) + 127) / 255;
+			dg = g + (dg * (255 - a) + 127) / 255;
+			db = b + (db * (255 - a) + 127) / 255;
+		}
+		if (dr > 255) dr = 255;
+		if (dg > 255) dg = 255;
+		if (db > 255) db = 255;
+		*d = (unsigned short)(((dr >> 3) << 11) |
+				      ((dg >> 2) << 5) | (db >> 3));
+	} else {
+		unsigned char *p = row + (unsigned int)x * (s->bpp / 8);
+
+		/* BGR(A) byte order, like put_px(). */
+		if (a == 255) {
+			dr = r; dg = g; db = b;
+		} else {
+			dr = r + (p[2] * (255 - a) + 127) / 255;
+			dg = g + (p[1] * (255 - a) + 127) / 255;
+			db = b + (p[0] * (255 - a) + 127) / 255;
+		}
+		if (dr > 255) dr = 255;
+		if (dg > 255) dg = 255;
+		if (db > 255) db = 255;
+		p[0] = (unsigned char)db;
+		p[1] = (unsigned char)dg;
+		p[2] = (unsigned char)dr;
+		if (s->bpp == 32)
+			p[3] = 0xFF;
+	}
+}
+
+static void app_px(const unsigned char *src, int idx,
+		   unsigned int *r, unsigned int *g, unsigned int *b,
+		   unsigned int *a)
+{
+	const unsigned char *p = src + (unsigned long)idx * 3;
+	unsigned int v = (unsigned int)p[0] | ((unsigned int)p[1] << 8);
+	unsigned int r5 = (v >> 11) & 0x1F;
+	unsigned int g6 = (v >> 5) & 0x3F;
+	unsigned int b5 = v & 0x1F;
+
+	*r = (r5 << 3) | (r5 >> 2);
+	*g = (g6 << 2) | (g6 >> 4);
+	*b = (b5 << 3) | (b5 >> 2);
+	*a = p[2];
+}
+
+int usurf_app_icon(struct usurf *s, int x, int y, int size,
+		   enum app_icon icon)
+{
+	const unsigned char *src;
+	int dx, dy;
+
+	if (!s || !s->px || size <= 0 || icon < 0 ||
+	    (unsigned int)icon >= APP_ICON_COUNT)
+		return 0;
+	src = app_icon_src((unsigned int)icon);
+	if (!src)
+		return 0;
+
+	for (dy = 0; dy < size; dy++) {
+		int py = y + dy;
+
+		if (py < 0 || py >= (int)s->h)
+			continue;
+		for (dx = 0; dx < size; dx++) {
+			int px = x + dx;
+			unsigned int r, g, b, a;
+
+			if (px < 0 || px >= (int)s->w)
+				continue;
+
+			if (size == APP_ICON_PX) {
+				app_px(src, dy * APP_ICON_PX + dx,
+				       &r, &g, &b, &a);
+			} else if (size * 2 <= APP_ICON_PX) {
+				/* Downscale: average a 2x2 or 4x4 grid over the
+				 * destination pixel's source box.  This keeps the
+				 * 48 px dock and 18 px menu icons clean. */
+				int taps = APP_ICON_PX >= size * 4 ? 4 : 2;
+				int sx0 = dx * APP_ICON_PX / size;
+				int sy0 = dy * APP_ICON_PX / size;
+				int sx1 = ((dx + 1) * APP_ICON_PX + size - 1) /
+					  size;
+				int sy1 = ((dy + 1) * APP_ICON_PX + size - 1) /
+					  size;
+				unsigned int sr = 0, sg = 0, sb = 0, sa = 0;
+				int tx, ty, n = 0, den = taps * 2;
+
+				for (ty = 0; ty < taps; ty++) {
+					int sy = (sy0 * den +
+						  (sy1 - sy0) *
+						  (2 * ty + 1)) / den;
+
+					if (sy >= APP_ICON_PX)
+						sy = APP_ICON_PX - 1;
+					for (tx = 0; tx < taps; tx++) {
+						int sx = (sx0 * den +
+							  (sx1 - sx0) *
+							  (2 * tx + 1)) / den;
+
+						if (sx >= APP_ICON_PX)
+							sx = APP_ICON_PX - 1;
+						app_px(src,
+						       sy * APP_ICON_PX + sx,
+						       &r, &g, &b, &a);
+						sr += r; sg += g;
+						sb += b; sa += a;
+						n++;
+					}
+				}
+				r = (sr + (unsigned int)n / 2) /
+				    (unsigned int)n;
+				g = (sg + (unsigned int)n / 2) /
+				    (unsigned int)n;
+				b = (sb + (unsigned int)n / 2) /
+				    (unsigned int)n;
+				a = (sa + (unsigned int)n / 2) /
+				    (unsigned int)n;
+			} else {
+				/* Upscale (or a small downscale): bilinear
+				 * sampling around the destination centre. */
+				int sx25 = ((2 * dx + 1) * APP_ICON_PX * 256) /
+					   (2 * size) - 128;
+				int sy25 = ((2 * dy + 1) * APP_ICON_PX * 256) /
+					   (2 * size) - 128;
+				int x0, y0, fx, fy;
+				unsigned int r00, g00, b00, a00;
+				unsigned int r10, g10, b10, a10;
+				unsigned int r01, g01, b01, a01;
+				unsigned int r11, g11, b11, a11;
+
+				if (sx25 < 0) sx25 = 0;
+				if (sy25 < 0) sy25 = 0;
+				x0 = sx25 >> 8;
+				y0 = sy25 >> 8;
+				fx = sx25 & 255;
+				fy = sy25 & 255;
+				if (x0 >= APP_ICON_PX - 1) {
+					x0 = APP_ICON_PX - 2;
+					fx = 255;
+				}
+				if (y0 >= APP_ICON_PX - 1) {
+					y0 = APP_ICON_PX - 2;
+					fy = 255;
+				}
+				app_px(src, y0 * APP_ICON_PX + x0,
+				       &r00, &g00, &b00, &a00);
+				app_px(src, y0 * APP_ICON_PX + x0 + 1,
+				       &r10, &g10, &b10, &a10);
+				app_px(src, (y0 + 1) * APP_ICON_PX + x0,
+				       &r01, &g01, &b01, &a01);
+				app_px(src, (y0 + 1) * APP_ICON_PX + x0 + 1,
+				       &r11, &g11, &b11, &a11);
+				r = (r00 * (256 - fx) * (256 - fy) +
+				     r10 * fx * (256 - fy) +
+				     r01 * (256 - fx) * fy +
+				     r11 * fx * fy) >> 16;
+				g = (g00 * (256 - fx) * (256 - fy) +
+				     g10 * fx * (256 - fy) +
+				     g01 * (256 - fx) * fy +
+				     g11 * fx * fy) >> 16;
+				b = (b00 * (256 - fx) * (256 - fy) +
+				     b10 * fx * (256 - fy) +
+				     b01 * (256 - fx) * fy +
+				     b11 * fx * fy) >> 16;
+				a = (a00 * (256 - fx) * (256 - fy) +
+				     a10 * fx * (256 - fy) +
+				     a01 * (256 - fx) * fy +
+				     a11 * fx * fy) >> 16;
+			}
+			blend_premul_px(s, px, py, r, g, b, a);
+		}
+	}
+	return 1;
+}
+
+void usurf_fill_round_alpha(struct usurf *s, int x, int y, int w, int h,
+			    int radius, unsigned int rgb,
+			    unsigned int alpha)
+{
+	unsigned int sr = (rgb >> 16) & 0xFF;
+	unsigned int sg = (rgb >> 8) & 0xFF;
+	unsigned int sb = rgb & 0xFF;
+	unsigned int pr, pg, pb;
+	int x0 = x, y0 = y, x1 = x + w, y1 = y + h;
+	int i, j;
+
+	if (!s || !s->px || alpha == 0 || w <= 0 || h <= 0)
+		return;
+	if (x0 < 0) x0 = 0;
+	if (y0 < 0) y0 = 0;
+	if (x1 > (int)s->w) x1 = (int)s->w;
+	if (y1 > (int)s->h) y1 = (int)s->h;
+	if (x1 <= x0 || y1 <= y0)
+		return;
+	if (radius < 0)
+		radius = 0;
+	if (radius > w / 2)
+		radius = w / 2;
+	if (radius > h / 2)
+		radius = h / 2;
+	pr = (sr * alpha + 127) / 255;
+	pg = (sg * alpha + 127) / 255;
+	pb = (sb * alpha + 127) / 255;
+
+	for (j = y0; j < y1; j++) {
+		int cy = y + radius;
+
+		if (j >= y + h - radius)
+			cy = y + h - radius - 1;
+		for (i = x0; i < x1; i++) {
+			int cx = x + radius;
+
+			if (i >= x + w - radius)
+				cx = x + w - radius - 1;
+			if (radius && (i < x + radius ||
+				       i >= x + w - radius) &&
+			    (j < y + radius || j >= y + h - radius)) {
+				int ddx = i - cx, ddy = j - cy;
+
+				if (ddx * ddx + ddy * ddy > radius * radius)
+					continue;
+			}
+			blend_premul_px(s, i, j, pr, pg, pb, alpha);
+		}
+	}
+}
+
 void usurf_font_attach(struct usurf *s, const char *path, int px)
 {
 	if (!s)

+ 24 - 0
user/lib/uwm/uwm_lib.h

@@ -6,6 +6,7 @@
 #define UWM_LIB_H
 
 #include "icon_abi.h"
+#include "app_icon_abi.h"
 
 struct ufont_face;
 
@@ -60,5 +61,28 @@ void usurf_canvas(struct usurf *s, const struct uwm_canvas *c,
  * surface.  Returns 0 when the bundle (or that id) is not available. */
 int usurf_icon(struct usurf *s, int x, int y, enum uwm_icon icon,
 	       unsigned int rgb);
+/* Icon blit clipped to (cx,cy,cw,ch), in screen coordinates. */
+int usurf_icon_clip(struct usurf *s, int x, int y, enum uwm_icon icon,
+		    unsigned int rgb, int cx, int cy,
+		    unsigned int cw, unsigned int ch);
+
+/* Soft drop shadow around a window rectangle: `spread` pixels outward,
+ * darkest next to the edge, clipped to (cx,cy,cw,ch).  The window interior
+ * is not modified. */
+void usurf_window_shadow(struct usurf *s, int wx, int wy, int ww, int wh,
+			 int spread, int cx, int cy,
+			 unsigned int cw, unsigned int ch);
+
+/* Draw one full-colour app icon from /ramfs/icons/apps96.icn, scaled to
+ * size x size and centred at (x, y).  Returns 0 when the bundle (or that
+ * id) is not available, so the caller can fall back to a letter tile. */
+int usurf_app_icon(struct usurf *s, int x, int y, int size,
+		   enum app_icon icon);
+
+/* A rounded rectangle blended over the surface at `alpha` (0..255).  The
+ * dock uses it for its translucent panel and the hover label. */
+void usurf_fill_round_alpha(struct usurf *s, int x, int y, int w, int h,
+			    int radius, unsigned int rgb,
+			    unsigned int alpha);
 
 #endif

+ 20 - 1
user/ucmd_lib.h

@@ -384,6 +384,23 @@ static inline int u_wm_mouse_capture(int on)
 	return u_syscall1(SYS_WM_MOUSE_CAPTURE, on);
 }
 
+/* Window-manager preferences (struct wm_prefs in wm_abi.h) and the request
+ * that focuses/starts the Settings app at a section. */
+static inline int u_wm_get_prefs(struct wm_prefs *out)
+{
+	return u_syscall2(SYS_WM_PREFS, SYS_WM_PREFS_GET, (int)out);
+}
+
+static inline int u_wm_set_prefs(const struct wm_prefs *in)
+{
+	return u_syscall2(SYS_WM_PREFS, SYS_WM_PREFS_SET, (int)in);
+}
+
+static inline int u_open_settings(int section)
+{
+	return u_syscall1(SYS_WM_OPEN_SETTINGS, section);
+}
+
 static inline int u_screen_size(unsigned int *w, unsigned int *h)
 {
 	struct sys_screen s;
@@ -411,12 +428,14 @@ static inline int u_win_scroll(struct win_scroll *out)
 }
 
 static inline int u_wm_resize(unsigned int index, unsigned int cw,
-			      unsigned int ch)
+			      unsigned int ch, int dx, int dy)
 {
 	struct wm_size s;
 
 	s.w = cw;
 	s.h = ch;
+	s.dx = dx;
+	s.dy = dy;
 	return u_syscall2(SYS_WM_RESIZE, (int)index, (int)&s);
 }
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.