Skip to content
Projekte

Über uns

GNOME-Shell-Erweiterung für Liquid Glass

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

What you can do

  • Dock - Glass behind the dock of the Dash to Dock / Ubuntu Dock extension or of Dhruva. With Dash to Dock, a bottom margin control lets the dock float above the screen edge; Dhruva keeps its own margin setting. The glass follows Dhruva's dock as it widens under the pointer while the icons are magnified.
  • Application Icons - The icons in Dash to Dock (the Show Apps button too) or Dhruva, in the launcher's results and in the overview's app grid, redrawn as glass plates under a one-color symbol, as in macOS 26 and iOS 26. See Glass Icons. Off by default.
  • Notifications - Glass behind notification banners. Supports adaptive text coloring and a hide safety margin to avoid flicker while the banner is dismissed.
  • OSD - Glass behind the on-screen displays (volume, brightness, and so on), with adaptive text coloring.

Gemessener Sternzuwachs

in 24h
+3
in 7 days
+14
in 15 days
+21
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Liquid Glass for GNOME Shell

License: MIT GNOME Shell

A GNOME Shell Extension that replicates the "Liquid Glass" UI concept using shaders on your desktop.

[!NOTE] Disclaimer: This is an unofficial, community-driven fan project and is not affiliated with, endorsed by, or connected to Apple Inc. in any way.

I love the look of Apple's Liquid Glass, but since I don't own any Apple products (I use an Android smartphone and a Linux computer), I wanted a way to see it on my desktop every day. So, I decided to build it myself.

Are you a developer? If you'd like to use this glass effect in your own GTK 4 / libadwaita app, take a look at glass-lib.

Demo

Unless noted otherwise, the screenshots below use the MacTahoe GTK theme (Dark) by vinceliuice. The theme is not bundled with this extension and has to be installed separately.

If you like the macOS-ish look, give MacTahoe a try. It pairs really nicely with the glass, and it's what I use every day.

Liquid Glass Overview Screenshot

Top Bar (one pill / three pills / centered pill, off by default):

Top Bar One Pill Screenshot

Top Bar Three Pills Screenshot

Dash to Dock:

Dash to Dock Screenshot

Dash to Dock with glass icons (Tinted, Light):

Dash to Dock With Glass Icons Screenshot

Notifications:

Notifications Screenshot

Panel Menus (right: menus growing from their button):

Panel Menu Screenshot Calendar Menu Growing From Its Button

Top Bar Menu:

Top Bar Menu Screenshot

The menu in this screenshot comes from the Kiwi Menu extension by kem-a. Liquid Glass only provides the glass.

Desktop Menu:

Desktop Menu Screenshot

Quick Settings (Background mode, Adwaita theme):

Quick Settings Background Mode with Adwaita Screenshot

Quick Settings (Toggle mode, Adwaita theme):

Quick Settings Toggle Mode with Adwaita Screenshot

Quick Settings (Toggle mode, MacTahoe theme):

Quick Settings Toggle Mode with MacTahoe Screenshot

Application Windows:

Application Window Screenshot

OSD:

OSD Screenshot

Glass Clock:

Glass Clock Screenshot

Desktop Widgets (off by default):

Desktop Widgets Screenshot

Installation (GNOME Extension)

Liquid Glass supports GNOME Shell 46 to 51 (for example Ubuntu 24.04 LTS, Debian 13 and current Fedora releases). It is developed and used daily on GNOME 50; the other versions are tested in containers.

[!IMPORTANT] This extension is not yet available on extensions.gnome.org. It has been submitted, but is still unreviewed, so for now it has to be installed manually using one of the methods below.

Option 1: Quick Install (Terminal)

Copy and paste this one-liner to clone and install it immediately:

git clone https://github.com/ryohsuke1231/liquid-glass.git && \
mkdir -p ~/.local/share/gnome-shell/extensions/ && \
cp -r liquid-glass/[email protected] ~/.local/share/gnome-shell/extensions/

Option 2: Manual Install

  1. Clone this repository: git clone https://github.com/ryohsuke1231/liquid-glass.git
  2. Open the liquid-glass folder.
  3. Copy the entire [email protected] folder to: ~/.local/share/gnome-shell/extensions/
  4. Restart GNOME Shell:
    • Wayland: Log out and log back in.
    • X11: Press Alt + F2, type r, and hit Enter.
  5. Enable Liquid Glass in the "Extensions" app or Extension Manager.

What Can Be Made of Glass

The effect can be enabled or disabled per UI element on the Effects page. In the Simple view every element shares one look (blur, corners, tint, outline); switch the view to Advanced (Appearance → Settings) to tune each element on its own — tint color and strength, an outline (a line along the visible edge of the glass, shadow not included, to make it easier to see: switch, width and color; the glass clock has none), blur radius, corner radius, glass expand, offsets, and brightness / contrast / saturation — plus the element-specific features listed below. Values you tune by eye have a slider next to the number; values whose number is what matters (spring constants, intervals) are typed in. Settings that depend on a switch (the outline, animations, adaptive color) sit indented below it and fold away with the arrow at the end of the switch's row.

Element Notes / Special features
Top Bar The bar itself, as one pill across the screen, three pills behind its groups of buttons (activities, clock, status icons), or a centered pill: the bar shrinks to its buttons and sits in the middle of the screen, like a dock at the top, with Quick Settings opening centered under its button. The centered pill keeps the clock group in the middle, so when one side has more buttons than the other it leaves room on the shorter side. Chosen on the Effects page (Appearance → Top bar in the Advanced view). The space around the pills (margin) and between their edges and the buttons (padding) can be set per side in the Advanced view; the bar grows to make room, and maximized windows stay below it. The top bars that other extensions add on further monitors, such as Multi Monitors Bar's, get the same glass with the same settings, unless they run along a side of the screen. Off by default. Supports adaptive text coloring.
Dock Glass behind the dock of the Dash to Dock / Ubuntu Dock extension or of Dhruva. With Dash to Dock, a bottom margin control lets the dock float above the screen edge; Dhruva keeps its own margin setting. The glass follows Dhruva's dock as it widens under the pointer while the icons are magnified.
Application Icons The icons in Dash to Dock (the Show Apps button too) or Dhruva, in the launcher's results and in the overview's app grid, redrawn as glass plates under a one-color symbol, as in macOS 26 and iOS 26. See Glass Icons. Off by default.
Calendar & Other Top Bar Menus Glass behind the calendar (clock) menu and behind the menus of the other top bar indicators — the keyboard layout and accessibility menus, and the indicators other extensions add, including ArcMenu's menu and its right-click menu. The calendar menus of the top bars other extensions add on further monitors, such as Multi Monitors Bar's, get the same glass and follow the calendar menu's settings. The calendar menu's cards (messages, events, world clocks) follow the colour scheme in GNOME Settings: dark under Dark, pale under Default, with the text colours set to match. Each detected menu can be switched off on its own. Menus grow out of their button, after liquid-dom's menu demo: the button's highlight drops out of the button and rounds off into a drop of glass, which is thrown out to where the menu will be — each time with a small push in a random downward direction — and swells into the menu, its items coming up through the glass, seen bent by its rim at first. Closing runs it back: the menu shrinks into a drop that rises into the button, widening into its highlight on the way, and fades once it has become the highlight. On by default (Appearance → Behavior → "Menus grow from their button"). With that off, a custom spring animation (stiffness / damping / mass) scales the menu instead. Also supports adaptive text coloring.
Notifications Glass behind notification banners. Supports adaptive text coloring and a hide safety margin to avoid flicker while the banner is dismissed.
Quick Settings Two modes: Whole menu applies one sheet of glass behind the whole panel, and Individual buttons turns every toggle button into its own piece of glass, keeping each toggle's own accent color (see "Button base color"). Also supports spring animation and adaptive text coloring; in Individual buttons mode the buttons can spring out of the middle of the menu as it opens, those nearest the panel button fastest.
OSD Glass behind the on-screen displays (volume, brightness, and so on), with adaptive text coloring.
Application Windows Glass behind application windows, with a window content opacity slider so the glass shows through the window itself. Applies either to selected applications, or to all windows minus exclusions. Both lists are filled from a live picker of your currently open windows, so there is no need to look up WM_CLASS values by hand.

Glass Icons

No icon is redrawn by hand: each one is taken apart once, in a process of its own, into the plates it is drawn on (rounded squares, circles, squircles, diamonds and other smooth shapes, a gear's regular teeth included, outermost first) and the symbol on them. After macOS 26's tinted, white and clear icons, the outer plate becomes a piece of glass, the plates on it take the icon color, lighter or darker as they (or parts of them) were lighter or darker than what is beside them, and the symbol is drawn over them in a color that stands apart from the plate under it, its parts in different colors at different strengths (red and green of one lightness too). What is symbol is decided for each colored area as a whole, so that gradients, soft shadows and glows stay part of the plate they are on, a gloss over the symbol stays part of the symbol, a faint veil of white or black over a gradient stays part of the plate, and a symbol keeps its gradients and the fade it has over a hole in its plate. A rim the icon draws along its own outline gives way to the glass's rim. Alike shapes side by side become plates together, even when they are a little too small for one on its own, and a surface cut into pieces of three or more colors (a pie, a puzzle) is drawn as symbol, none of its pieces taken for the plate's own color, along with the ring or disc in its middle. An icon that is not drawn on a rounded square is set on a squircle, an icon's own rounded square gets corners that meet its sides smoothly (a little, so that it still fits what is on it), and every outer plate is brought to one size, so that all icons share the same outline; a plate that carries a picture, such as a photo or pixel art, is drawn as symbol in shades that keep its colors apart, on glass. The results are kept in the user's cache, so an icon is only taken apart again when it changes. Icons are taken apart by a few processes side by side, and a few seconds after the extension starts, those of every installed application that will be redrawn are taken apart ahead of time, so that opening the app grid does not wait for them; a notification says when this starts and when it is done. While an application starts, the icon that zooms out of the dock keeps its picture, in the icon color.

  • Look — Tinted, Mono (dark glass in white and grey) or Clear (each plate is real glass that refracts and lights what is behind it the way the rest of the glass does, with the same settings: the dock's or the launcher's glass, the app grid's background, and the plates under it; hardly frosted, with a rim a little wider than the glass's, under a white symbol with a soft shadow). The clear glass follows what is behind it as it changes, and is read once for all the icons of a dock, app grid, folder or launcher, so that scrolling the app grid or hiding the dock stays smooth. With Clear picked, the preferences offer to darken the dock (a black tint at 0.16 strength), which keeps the icons readable on a light wallpaper. Tinted comes in two variants: Dark (dark opaque glass, with the plates on it and the symbol in the icon color) and Light (glass in the icon color, a little darkened, under an almost white symbol).
  • Color and Tint strength (Tinted only) — the system accent color (GNOME 47 and later) or a color of your own, and how much of it the dark variant's glass takes as well (none by default).
  • Dock, Launcher and App grid — where icons are redrawn, each on its own (the app grid's folders included, as well as the small icons on a folder's own icon). Dock covers Dash to Dock and Dhruva alike; Dhruva's folders, trash and other items that are not applications keep their own icons.
  • Size — the icons' size as a share of what the dock, the launcher or the app grid gives them, for icons that look small on the dock without changing Dash to Dock's own icon size.
  • Symbol opacity.
  • Glass tuning — a small window of sliders for the finer numbers of the current look (the glass's lightness and opacity, how much white or color the plates and the symbol take, the rim and the sheen; Clear takes its rim and refraction from the glass settings and sets how much wider its rim is), with a button that puts every look back to its defaults.
  • Every application's icon, minus the ones you leave out, or only the ones you pick, each list filled from a picker of the installed applications.

Adaptive Text Coloring

Where it is supported, the extension samples the brightness of what is behind the UI and adjusts the text color so labels stay readable on both bright and dark wallpapers. A Preferred text color (Automatic / Light / Dark) decides the cases where the background favors neither. The sample interval is configurable; a shorter interval reacts faster but costs more CPU.

Quick Settings: Whole menu vs. Individual buttons

Chosen with Apply quick settings glass to under Effects → Show glass on, or with Apply glass to in the quick settings surface of the advanced Appearance page.

  • Whole menu applies the glass as one continuous sheet behind the whole quick settings panel. Corner radius, X/Y offset and the spring animation apply to that sheet.
  • Individual buttons gives each toggle button its own glass shape, tracked individually. With Animations on (the switch the quick settings surface of the advanced Appearance page shows in this mode, also set by Behavior → Animations), the menu opens with every button's glass already there, gathered towards the middle of the menu and at 70% of its size; the buttons then all spring out to their places at once — those nearest the panel button fastest — swinging once a little past their size, and their labels and icons fade in as they go. The glass of two buttons is never let closer than 3 px (or than at rest). The menu closes with the shell's own fade. "Button corners" sets the roundness of each shape, and "Button base color" controls how much of the toggle's own original color (for example the blue of an active toggle) is kept, independently of the custom tint color. The menu keeps the theme's own background behind the buttons, so this mode is meant for themes whose quick settings menu is transparent, such as MacTahoe (Dark). On a theme with an opaque menu (most light themes) the buttons have nothing to refract and look flat; use Whole menu there. The sliders and the header are not touched.

Growing Out of the Screen Edge and the Bar

Each of these is off by default, and is set in the top bar or dock surface of the advanced Appearance page.

  • Grow out of the screen edge (top bar and dock) — the glass reaches the screen edge and curves outwards into it instead of floating, with the rim, bevel and shadow following the curve. Edge flare radius sets the size of that curve. The dock's glass draws back into the edge as the dock hides, and its icons sit closer to the edge. The top bar's top margin and the dock's bottom margin are not used while this is on.
  • Menus grow out of the bar — the bar's glass grows down into the calendar, Quick Settings (Whole menu) and the other top bar menus on springs, so bar and menu are one piece of glass. The bar widens for a menu wider than it. The menus then take the top bar's glass settings.
  • Menus grow out of the dock — the same for Dash to Dock's app menus, its apps' names and window previews, and for top bar buttons placed in the dock, such as the tray icons of Dock Tray, on a dock at the top or bottom of the screen. Side docks keep floating menus.
  • Join radius (top bar and dock) — the size of the concave curve where what grows out meets the bar or the dock, smoothed like the corners by Corner smoothing. Near the end of the bar or the dock, that curve and the corner there run into one S that turns less the nearer the end is, so a menu at the end continues the side in a straight line.
  • Window previews on the dock (on the Effects page) — hovering an app with windows on a Dash to Dock dock shows Dash to Dock's window previews in place of the app's name. They open without a grab or keyboard focus, so the pointer can move on along the dock and the focused window keeps the keyboard.
  • Notifications grow out of the bar — banners grow out of the bar under the clock. While the bar is hidden (Hide Top Bar), their own glass grows out of the top of the screen.
  • Volume and brightness popups grow out of the bar — the popup moves under the system indicators and grows out of the bar. While the bar is hidden, it sits at the top of the screen and its glass grows out of the edge.
  • Glass behind the hidden-panel clock — with Hide Top Bar: Multi Monitors, the clock shown while a panel is hidden gets the top bar's glass, attached to the top of the screen, in place of its dark tab.

Top Bar in the Dock

In the dock, one of the Top bar choices on the Effects page, hides the top bar and puts its buttons into Dash to Dock, left and right of the apps. It is off by default.

  • It works on docks along the top or bottom of the screen. Without one, the top bar stays.
  • Top bar buttons in the dock, from left to right, shown under that choice, sets the order of the buttons and which side of the apps each is on, and its switches leave a button out. Buttons the top bar gets later, from other extensions, are added next to the apps.
  • The buttons keep their menus, which open from the dock; with Menus grow out of the dock they grow out of its glass. Quick Settings opens centered on its button.
  • With docks on several monitors there is one set of buttons: it sits in one dock, the others show copies, and it moves to a dock as the pointer comes onto that dock's buttons.
  • The bars other extensions add on further monitors, such as Multi Monitors Bar's, are hidden too. Notifications and the volume and brightness popup then behave as with a hidden top bar.
  • The buttons' highlight is a pill in the middle of the dock, whatever the dock's thickness. Space between the apps and the screen edge and Space on the apps' other side, in the dock surface of the advanced Appearance page, set that thickness; at -1 the space is Dash to Dock's.
  • Dash to Dock does not count the buttons when it sizes its icons, so with many apps the app list scrolls sooner. The clock is only on screen while the dock is.

Icons on the Quick Settings Button

Icons on the quick settings button, on the Effects page, has a switch for each icon the button can show (network, microphone in use, power mode, those of other extensions…). An icon turned off is hidden; the quick settings menu keeps its entry.

Using it with Blur my Shell

Recent versions of Blur my Shell (74) blur popup menus, notifications and OSDs by default. Its blur shows through the glass, so turn off Popups in Blur my Shell; while it blurs popups that have glass, the extension notes it in its log when Logging is on. Turning off Popups leaves Blur my Shell's other effects on. While Blur my Shell blurs the top bar, the dock or application windows where Liquid Glass draws glass, the Liquid Glass preferences show a warning at the top of the Appearance page with a button that goes to the override below.

Or let Liquid Glass do it: Override Blur my Shell (Rendering → Compatibility, shown while Blur my Shell is installed) turns Blur my Shell's blur off for the parts that also have glass, for as long as Liquid Glass runs. The parts are chosen below the switch: menus and popups (Blur my Shell blurs dialogs and switchers with the same setting), top bar, dock (on by default) and application windows (off by default, as it turns off all of Blur my Shell's window blur). A part gets its blur back when it loses its glass, when the override is turned off and when Liquid Glass is turned off (not when the screen locks). Blur my Shell's own settings are what change, so its preferences show them off meanwhile; turning one back on there while it is overridden is undone.

On the Desktop

The Desktop page of the preferences adds glass that is not part of GNOME's own interface. All three are off by default.

Glass Clock

A large clock whose digits are themselves glass, like the clock on the iPhone's lock screen, with the date above it. It sits on the desktop below the windows. Pick a place for it (one of the four corners or the center) in the preferences or from its right-click menu (Position), or right-click it and choose Move and Resize: a frame appears round it, to drag it anywhere and to resize it by the handles. The side handles make the digits wider; the top and bottom ones make them taller the way the iPhone's tall clock does, in one of two ways (Taller digits in the preferences): evenly or along their upright strokes (the default), lengthening the straight upright parts while curves and bars keep their shape and the parts above and below a join in the middle (of a 3, 5 or 8) grow alike. Either way every stroke keeps its width whichever way it runs, corners stay sharp and the colon's dots keep their shape; the corners scale the whole clock. While the frame is shown the arrow keys do the same a little at a time: an arrow key alone moves the clock, Shift + ↑ / ↓ makes it taller or shorter and Shift + → / ← wider or narrower, about its center, and Ctrl + ↑ / ↓ makes the whole clock larger or smaller about its center; Enter or Esc ends it. The widgets can be moved with the arrow keys the same way. It can be moved partly or even all the way off the screen, as long as 1 px of its shown part (the digits' field, and the date when it is shown) stays inside the work area. It stays where it was moved until you pick a place again. The font, the size, the width, the height, the time format (as in Settings, 24-hour or 12-hour), the date, the blur and the tint can be changed. Four condensed fonts that suit a tall clock come with the extension, each in Light, Regular, SemiBold and Bold: Antonio, Barlow Condensed, Saira Extra Condensed and Sofia Sans Extra Condensed, all under the SIL Open Font License (fonts/); Barlow Condensed Light is the default. The interface font or any installed font can be picked instead.

Stand behind the wallpaper (Desktop → Glass clock, off by default) hides the parts of the clock that a mountain ridge, a building, a tree or the subject of the wallpaper would be in front of, like the depth effect of the iPhone's lock screen. The wallpaper is analysed on your computer; nothing is sent anywhere and no API key or account is needed. Two models find what is in front: Depth Anything V2 Small estimates how near each part of the picture is, and the small U²-Net (as published by rembg) marks its subject; both are Apache-2.0. They are not part of the extension: the Download button in the preferences fetches them (52 MB, from huggingface.co and github.com, checked against their checksums) into ~/.local/share/liquid-glass/models/. They run in plain GJS, in a process of their own with helper processes on the other cores, so nothing else has to be installed and the shell keeps drawing meanwhile; a wallpaper takes about ten seconds on an eight-core machine and longer on fewer cores.

  • The clock can still be moved and resized freely. What it stands behind is worked out again for where it is: the subject where it covers a part of the clock, together with what is nearer than the subject (the ground a mountain stands on, so the clock does not show again below it); otherwise whatever is nearer than a clear edge in depth across the clock (a ridge against the sky). Where there is no such edge, where the subject would hide most of the clock, and on abstract wallpapers, the clock is drawn whole as before.
  • Each wallpaper is analysed once and remembered (~/.cache/liquid-glass/wallpaper-depth/, the 40 most recent), so wallpapers that rotate are only read back after their first turn. A new wallpaper is analysed a few seconds after it is set, only the latest one if several follow each other; Analyse new wallpapers automatically can be turned off, and Analyse Now does it on request. The preferences show how far the download and the analysis have come, with a progress bar.
  • The picture is analysed as the primary monitor shows it (zoom, scaled, stretched, centered, spanned on a single monitor), at any size. Slideshows (.xml), tiled pictures and plain colours are left alone.

Desktop Widgets

Cards of glass on the desktop, stacked in a corner or the center of the primary monitor. Right-click one to put it in another corner on its own (Position), or choose Move to put it anywhere else:

  • Weather — the current weather and the next hours, for a city or town searched for in the preferences, down to small towns that GNOME Weather has no location for; without one, for the location set in GNOME Weather, as the calendar menu shows it. With GNOME Weather installed the forecast comes from libgweather (MET Norway), as in GNOME Weather; without it, from Open-Meteo. The card names its source. Click the card to open GNOME Weather.
  • Up next — the rest of today's events and tomorrow's, from the calendars the calendar menu shows. Click it to open GNOME Calendar.
  • Now playing — the track a music or video player is playing (any MPRIS player), with its cover art, previous, play/pause and next buttons, and five bars beside the title that follow the sound being played (an FFT of the default output, through GStreamer). GNOME shows its microphone indicator while the bars listen; they can be switched off in the preferences (Sound bars). Hidden while no player is running.

Widgets that were moved one above the other stay a stack: when one grows, shrinks or is hidden (Now playing while no player runs), the ones below it follow instead of overlapping it or leaving a gap.

While one is moved, dotted guides show where it lines up with the others and the clock (the same edge, or the same center line), with the middle of the screen, and where it sits as far from one item as that item is from the next; near such a place it snaps onto it. Their text takes the light or dark color set as preferred in the preferences for as long as that stays readable on the wallpaper behind it, so it does not keep flipping on a busy background.

The widgets and the clock are hidden in the overview, together with the windows. When you switch workspaces, they slide with the workspace instead of disappearing until the switch ends. Desktop → Workspaces → Only on the first workspace keeps them to the first workspace. With desktop icons (Desktop Icons NG) they sit above the icons, so they can be clicked.

Their right-click menu just appears; under Appearance → Desktop widgets it can instead grow out of a drop of glass where you clicked, or open on a spring.

Sky and Weather (experimental)

Follow the sky (Desktop → Sky and weather, off by default) makes the glass of the whole shell follow the sky outside:

  • Light from the sun: the edge light comes from where the sun is, for the place you set: from the left in the morning, from above at noon and from the right in the evening. At night it comes from where the sun is below the horizon, that is from underneath. The edge light keeps the strength you set. With this off, the glints on rain and snow follow your own light angle instead (Rendering page).
  • Sky-colored tint: the tint of every glass becomes the color of the sky, blue by day, orange and pink at sunrise and sunset, dark blue at night, and grey under cloud. This replaces the tint settings while it is on. With Show the weather off the tint is plain white at a strength of 0.10 instead.
  • Show the weather: clear glass is brighter and more vivid; cloudy glass turns grey, veiled and blurrier; rainy glass is clear (the backdrop is blurred less, and at full resolution so that the lens does not magnify coarse texture) and is itself a drop of water, part of a sphere that touches the glass over less than its widest part (a bead, by default) and curves over on top, and swells as a low dome over the whole glass, whose surface refracts what is behind it as water does, with a soft reflection on the side of the sun, and drops of water sit on it, each an ellipse of its own size and turn that refracts, glints and gathers the light for itself (none overlap or reach past the glass); now and then one grows heavy and runs down in a few starts and stops, takes in the drops it meets and leaves tiny ones behind, and new ones form on their own; Raindrop shape also offers a half sphere and a flat cap, and the Lens setting turns the drop inside out; snowy glass is lightly frosted, with patches of ice that differ from place to place: bundles of a few almost parallel needles of ice that bend and glint with the sun and carry its light along their length, nets of cracks, and plain haze.

The sun and the sky's colour are worked out on your computer from the place and the time. The place is the one set for the weather widget, or else the location set in GNOME Weather. The weather comes from Open-Meteo, which is sent the place's coordinates every half hour; pick a weather yourself (Weather → Always clear, cloudy, rain or snow) and nothing is sent.

With Weather set to snow, a Snow white tint slider appears under it, for how white the frost makes the glass (0.06 by default). At 0 snow is no whiter than the glass with the weather off: the brighter, greyer surface and the grey tint of snow fade out with it, leaving the needles and cracks.

With Weather set to cloudy, a Cloud grey slider appears the same way, for how grey, veiled and blurred the glass is under cloud (0.35 by default; 0 is the glass with the weather off).

Lens (Rendering page) turns the glass's edge lens inward, so the edge dips instead of bulging and bends the backdrop outwards.

Launcher

A search field on glass in the middle of the screen, like Spotlight, opened with Super + Alt + Space (changeable in the preferences). It asks the same search providers as the overview, so it finds applications, settings, files, calculations and whatever else your installed apps provide, as far as they are enabled in Settings → Search. Use the arrow keys and Enter, or click a result; Esc or a click outside closes it.

The width of the search field, the height of the pinned items' page and the size of its icons can be set under Desktop → Launcher; on a small screen, for example a laptop at 200 % scaling, a narrower launcher keeps clear of the desktop widgets. The results scroll when they would run off the bottom of the screen.

Applications that GNOME Software finds but that are not installed yet are marked Install; Enter opens them in GNOME Software.

Arithmetic such as 3*8, 3*8= or 1-5 is worked out by the launcher itself and shown first; Enter copies the result.

Point at a result and a pin appears on its left: click it to pin the result (applications, files, settings and the like; not calculations). Pinned results keep a filled pin, come first when they match a search, and are listed on their own page, opened with Ctrl + P: applications in a grid (as many columns as the launcher's width and the icon size allow, the tiles spread evenly over the row), everything else in a list below, each with its pin to unpin it. The back button, Esc or Ctrl + P goes back to the search, as does typing. The glass changes to the larger page either by morphing, with the content seen deep in the glass on the way, or by easing with the content fading (Desktop → Launcher → Change to pinned items).

Preferences

  • Appearance — shared blur, corners, tint and outline; animations, adaptive color and matching menu heights; Backup, which exports every setting to a file and imports it again.
  • Effects — choose where glass appears: top bar, dock, menus, popups (and whether quick settings get one sheet or one per button), application icons and application windows. The advanced view lists every surface on its own here, the top bar included.
  • Desktop — the glass clock (whether it shows, the time format, the date, and whether it stands behind the wallpaper, with the models' download), the desktop widgets, whether they show only on the first workspace, and the launcher (its shortcut). The clock's place, size, font and glass (blur, tint color and strength, brightness, contrast, saturation), and the launcher's width, the height of the pinned items, their icon size and how it changes to them, are surfaces of the advanced Appearance page.
  • Rendering — rendering quality, refraction, edge lighting, shadows and diagnostics.

Opening the window preserves your configuration. Custom means your existing values differ or do not match a preset. Editing a shared control applies its value to every surface; it does not enable disabled effects. Menu animations default to Smooth, which does not bounce. See Preferences for behavior and tests.

Glass Settings (Rendering page)

The Rendering page controls the shader itself. These settings are global and apply to every element above at once. The Simple view shows the main ones; the Advanced view shows all of them.

Blur

  • Method - Gaussian (most accurate) or Dual Kawase (cheaper; the radius is not pixel-accurate). The Simple view's Quality preset picks the method and the resolution together.
  • Resolution - Half or Quarter. Quarter blurs a quarter of the pixels, at the cost of a visibly coarser blur.

Optics

  • Thickness - The simulated physical thickness of the glass. Higher values bend the background more strongly near the edges.
  • Refraction - The overall strength of the refraction distortion.
  • Edge smoothing - Feathering width of the glass silhouette, used as geometry anti-aliasing.
  • Surface curvature - The superellipse exponent describing the cross-section of the glass. Low values give a soft, dome-like surface; high values give a flat top with a sharp roll-off at the edge.
  • Index of refraction - Optical density of the material. Real glass is roughly 1.5 to 2.4.
  • Color separation - RGB separation (chromatic aberration) in the refracted image, as a fraction of the refraction: the colors part only where the glass bends the background, and most where it bends it most. 0 by default: macOS's glass shows none.
  • Corner smoothing - Continuous (squircle-like) corners, as on macOS and iOS. 0 gives circular arcs; higher values start the curve earlier, up to (1 + value) times the corner radius from the corner, so it meets the straight edges without a visible crease. The corner's midpoint stays where the circular one would be, so the corner radius keeps its meaning. Corners with no room to grow, such as pill-shaped buttons, stay circular, and application windows always keep circular corners to match the window. The concave joins where menus grow out of the top bar or the dock are smoothed the same way. 0.6 by default.

The lens acts over a fixed band (22 px) along the edge, whatever the corner radius or the size of the element, as measured on macOS; the settings above shape the lens inside that band. An element thinner than the band gets the same lens scaled down.

Lighting

  • Highlights / Shininess - Brightness and sharpness of the specular highlights.
  • Edge light width / Edge light - Size and brightness of the light band along the edges.
  • Edge directionality - How strongly the virtual light direction shapes the edge light (higher values concentrate it on the lit side).
  • Edge falloff - Falloff of the Fresnel term for the edge light.
  • Edge color strength - Multiplier for the edge light color.
  • Sheen - A broad sheen spread across the surface, sampled from the background. 0 by default.
  • Light angle - Direction of the virtual light source, in degrees.
  • Color from backdrop - The edge light, highlights and sheen take the color of what is behind the glass instead of plain white, at the same brightness. On by default.

Shadows

The drop shadow anchors the glass on light backgrounds (a white wallpaper, for example) so it does not visually disappear.

  • Shadow radius - How far the shadow extends past the glass edge. 0 disables it.
  • Shadow strength - How dark the shadow is.

A separate ambient-occlusion style darkening sits just inside the glass edge, independent of the outer drop shadow.

  • Inner shading - How dark the inner band gets. With the edge light on, the darkening falls only where the edge light does not (the edges that run along the light direction), as on macOS.
  • Inner shading radius - How far inward the darkening extends before fading out.

Compatibility

  • Override Blur my Shell - Shown while Blur my Shell is installed. Turns its blur off where there is glass; see Using it with Blur my Shell.

Troubleshooting

  • Logging - Print the extension's logs to the journal / terminal. Useful when reporting a bug.
  • Render diagnostics - More detailed rendering state in the logs; adds overhead, so leave it off for normal use.
  • Dump shortcut - A global shortcut (Ctrl+Alt+L unless changed in the row under the switch) that records the glass state for a bug report.

The WebGL/Three.js Prototype (The Lab)

Before writing the GNOME implementation in GJS/Clutter, I built a standalone WebGL prototype using Three.js to perfect the math, shaders, and real-time tuning.

Three.js Prototype Preview

You can run the web prototype locally:

cd prototypes/sandbox-threejs
npm install
npm run dev

Development & AI Usage

This project is written in TypeScript and compiled to GJS. To build it:

cd [email protected]
npm install
npm run build

The source layout and test instructions describe module ownership and renderer lifecycle constraints.

A significant part of this codebase was written with the help of AI coding assistants, primarily Claude (Anthropic), used for implementation, shader debugging, and refactoring. The design, the shader math, the architecture decisions, and all of the testing on real hardware are mine, and every change is reviewed before it lands.

Roadmap

Done

  • Perfect the WebGL/Three.js Prototype
  • Port GLSL shaders to GNOME Shell
  • Apply Liquid Glass to Top Panel Menus
  • Extend glass to more panel menus (keyboard layout, Vitals, desktop right-click menu)
  • Add Dash to Dock support
  • Add Notifications support
  • Add Settings Feature
  • Add Simple and Advanced preference views
  • Add Adaptive Text Coloring
  • Add Quick Settings support (Background mode)
  • Add Quick Settings Toggle mode (per-toggle glass)
  • Add OSD support
  • Add Application Window support (originally by @hoshizora-chi)
  • Add window blacklist with a visual window picker
  • Match the lens and edge to macOS 27
  • Improve performance (blur reuse, region-limited blur, reading the backdrop from the stage)
  • Support GNOME 51
  • Support GNOME 46, 47, 48 and 49
  • Continuous corners, refraction-proportional color separation and backdrop-colored highlights
  • Add ArcMenu support
  • Add top bar glass (one pill or three pills)
  • Grow menus out of their top bar button
  • Add a glass clock, desktop widgets (weather, up next, now playing) and a search launcher
  • Move and resize the clock and the widgets from their right-click menu
  • Tall clock digits that grow along their upright strokes, with smoother glass on glyph corners and curves
  • Ship four condensed clock fonts, and give every desktop item a Position menu
  • Menus that grow out of their button as in liquid-dom, with their items seen through the glass; tall clock digits that keep their stroke width
  • Sound bars on the Now playing widget; menus that grow as one drop of glass; tall clock digits that grow evenly
  • Choose how the clock's digits grow taller (evenly or along their upright strokes), and make them in a process of their own so the shell never stalls for them
  • Snapping guides for moving the clock and the widgets
  • Move, stretch and scale the clock with the arrow keys while its frame is shown
  • Glass application icons in the dock and the launcher (tinted, mono, clear)
  • Glass application icons in the app grid
  • Pin launcher results, with a page of pinned items, and work out arithmetic in the launcher
  • Export and import the settings, set the launcher's size and its pinned icons' size, scroll its results, mark applications that are not installed, and keep desktop widgets in a stack when their content changes
  • Outline for the glass of each element, and settings that fold away under their switch in the advanced preferences
  • Add Dhruva dock support, an opening animation for Quick Settings' Individual buttons mode, and an override for Blur my Shell's blur where there is glass
  • Centered top bar pill that shrinks the bar to its buttons
  • The clock and the widgets slide with their workspace when switching, and can be kept to the first workspace
  • The glass clock can stand behind what is near in the wallpaper (a ridge, a building, the subject), analysed locally in GJS
  • Top bar and dock that grow out of the screen edge, and menus, notifications and popups that grow out of them
  • Top bar in the dock: the top bar's buttons sit in Dash to Dock, left and right of the apps, and the bar is hidden
  • Choose which icons the quick settings button shows
  • The dock's app names grow out of its glass, and window previews on hover
  • Experimental: the glass follows the sky (sun-lit edge, sky-colored tint, clouds, a drop-shaped lens in rain, frost in snow), and an inward lens

Next

  • Publish to extensions.gnome.org
  • glass-lib: a glass library for apps

License

MIT. See LICENSE.

Ähnliche Projekte entdecken

Wird geladen…