Skip to content

aivi.gtk.icons ​

Typed constants for standard GNOME/freedesktop icon names. Import specific icons to use them in widget properties instead of writing magic strings.

Import ​

aivi
use aivi.gtk.icons (
    documentSaveSymbolic
    editDeleteSymbolic
)

At a glance ​

CategoryCountNotes
Actions35Document, edit, list, zoom, media
Navigation13Go-*, bookmark, menu, overflow
Status12Dialog icons, emblems, network, battery
Objects20Files, audio, devices, users
Symbolic variants27Single-colour -symbolic companions

Actions ​

ConstantIcon name
documentNewdocument-new
documentOpendocument-open
documentSavedocument-save
documentSaveAsdocument-save-as
documentClosedocument-close
documentPrintdocument-print
editCopyedit-copy
editCutedit-cut
editPasteedit-paste
editDeleteedit-delete
editUndoedit-undo
editRedoedit-redo
editFindedit-find
editFindReplaceedit-find-replace
editSelectAlledit-select-all
editClearedit-clear
listAddlist-add
listRemovelist-remove
viewRefreshview-refresh
viewFullscreenview-fullscreen
viewRestoreFullscreenview-restore
zoomInzoom-in
zoomOutzoom-out
zoomFitBestzoom-fit-best
zoomOriginalzoom-original
windowClosewindow-close
applicationExitapplication-exit
mailSendmail-send
mailReplymail-reply
mailForwardmail-forward
callStartcall-start
callStopcall-stop
mediaPlaymedia-playback-start
mediaPausemedia-playback-pause
mediaStopmedia-playback-stop
ConstantIcon name
goPreviousgo-previous
goNextgo-next
goUpgo-up
goDowngo-down
goHomego-home
goFirstgo-first
goLastgo-last
goJumpgo-jump
bookmarkNewbookmark-new
openMenuopen-menu
openMenuHorizontalopen-menu-horizontal
viewMoreview-more
viewMoreHorizontalview-more-horizontal

Status ​

ConstantIcon name
dialogErrordialog-error
dialogWarningdialog-warning
dialogInformationdialog-information
dialogQuestiondialog-question
emblemOkemblem-ok
emblemImportantemblem-important
networkOfflinenetwork-offline
networkTransmitnetwork-transmit
networkReceivenetwork-receive
batteryFullbattery
syncSynchronizingemblem-synchronizing
processStopprocess-stop

Objects ​

ConstantIcon name
addressBookaddress-book-new
audioVolumeMuteaudio-volume-muted
audioVolumeHighaudio-volume-high
audioVolumeLowaudio-volume-low
audioVolumeMediumaudio-volume-medium
cameracamera-photo
cameraVideocamera-video
contactcontact-new
folderfolder
folderNewfolder-new
folderOpenfolder-open
imageimage-x-generic
preferencespreferences-system
systemSettingspreferences-other
securitysecurity-medium
usersystem-users
computercomputer
phonephone
printerprinter
scannerscanner

Symbolic variants ​

Symbolic icons render as a single-colour glyph that adapts to the current foreground colour. Prefer symbolic variants inside header bars and toolbars where the icon must respect the theme colour and high-contrast settings.

ConstantIcon name
documentNewSymbolicdocument-new-symbolic
documentOpenSymbolicdocument-open-symbolic
documentSaveSymbolicdocument-save-symbolic
documentSaveAsSymbolicdocument-save-as-symbolic
editCopySymbolicedit-copy-symbolic
editCutSymbolicedit-cut-symbolic
editPasteSymbolicedit-paste-symbolic
editDeleteSymbolicedit-delete-symbolic
editUndoSymbolicedit-undo-symbolic
editRedoSymbolicedit-redo-symbolic
listAddSymboliclist-add-symbolic
listRemoveSymboliclist-remove-symbolic
viewRefreshSymbolicview-refresh-symbolic
goPreviousSymbolicgo-previous-symbolic
goNextSymbolicgo-next-symbolic
goUpSymbolicgo-up-symbolic
goDownSymbolicgo-down-symbolic
goHomeSymbolicgo-home-symbolic
openMenuSymbolicopen-menu-symbolic
searchSymbolicsystem-search-symbolic
settingsSymbolicemblem-system-symbolic
notificationSymbolicnotification-symbolic
userSymbolicsystem-users-symbolic
checkmarkSymbolicemblem-ok-symbolic
errorSymbolicdialog-error-symbolic
warningSymbolicdialog-warning-symbolic
infoSymbolicdialog-information-symbolic

Usage examples ​

Header bar with icon buttons ​

aivi
use aivi.gtk.icons (
    documentSaveSymbolic
    editUndoSymbolic
    editRedoSymbolic
)

value view =
    <Window title="Editor">
        <HeaderBar>
            <Button iconName={editUndoSymbolic} tooltipText="Undo" />
            <Button iconName={editRedoSymbolic} tooltipText="Redo" />
            <Button iconName={documentSaveSymbolic} tooltipText="Save" label="Save" />
        </HeaderBar>
    </Window>

Status icon in a row ​

aivi
use aivi.gtk.icons (
    errorSymbolic
    checkmarkSymbolic
)

type Bool -> Text
func iconFor =
 T|> checkmarkSymbolic
 F|> errorSymbolic

Notes ​

  • All constants are plain Text values; use them anywhere a Text expression is accepted.
  • Icon names follow the freedesktop Icon Naming Specification and the GNOME/Adwaita icon set.
  • Symbolic variants (-symbolic) adapt to foreground colour and respect high-contrast themes; prefer them in header bars and toolbars.
  • If you need an icon not listed here, pass the raw string directly — GTK will look it up in the current icon theme.

(c) 2026 by Andreas Herd