From ecaad02c0b8197155dcf75cce1c6b3f939cd7e2e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 4 Mar 2023 20:10:53 -0500 Subject: [PATCH] Added a bunch of icon IDs --- theme/theme.go | 118 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/theme/theme.go b/theme/theme.go index 85437b8..dbeb3d0 100644 --- a/theme/theme.go +++ b/theme/theme.go @@ -16,8 +16,6 @@ const ( ) // Pattern lists a number of cannonical pattern types, each with its own ID. -// This allows custom elements to follow themes, even those that do not -// explicitly support them. type Pattern int; const ( // PatternBackground is the window background of the theme. It appears // in things like containers and behind text. @@ -56,6 +54,7 @@ type Pattern int; const ( PatternMercury ) +// Color lits a number of cannonical colors, each with its own ID. type Color int; const ( // ColorAccent is the accent color of the theme. ColorAccent Color = iota @@ -64,6 +63,121 @@ type Color int; const ( ColorForeground ) +// Icon lists a number of cannonical icons, each with its own ID. +type Icon int; const ( + // Place icons + IconHome Icon = iota + Icon3DObjects + IconPictures + IconVideos + IconMusic + IconArchives + IconBooks + IconDocuments + IconFonts + IconPrograms + IconLibraries + IconDownloads + IconRepositories + IconSettings + + // Object icons + IconFile = iota + 0x80 + IconDirectory + IconPopulatedDirectory + + IconStorage + IconMagneticTape + IconFloppyDisk + IconHDD + IconSSD + IconFlashDrive + IconMemoryCard + IconRomDisk + IconRamDisk + IconCD + IconDVD + + IconNetwork + IconInternet + + IconDevice + IconServer + IconNetworkSwitch + IconRouter + IconDesktop + IconLaptop + IconTablet + IconPhone + IconCamera + + IconPeripheral + IconKeyboard + IconMouse + IconTrackpad + IconPenTablet + IconMonitor + IconSpeaker + IconMicrophone + IconWebcam + IconGameController + + IconPort + IconNetworkPort + IconUSBPort + IconParallelPort + IconSerialPort + IconPS2Port + IconMonitorPort + + // Action icons + IconOpen = iota + 0x100 + IconSave + IconSaveAs + IconNew + IconNewFolder + IconDelete + + IconCut + IconCopy + IconPaste + + IconAdd + IconRemove + IconAddBookmark + IconRemoveBookmark + IconAddFavorite + IconRemoveFavorite + IconPlay + IconPause + IconStop + IconFastForward + IconRewind + IconToEnd + IconToBeginning + IconRecord + IconVolumeUp + IconVolumeDown + IconMute + + IconBackward + IconForward + IconRefresh + IconHistory + + IconYes + IconNo + + // Status icons + IconInformation = iota + 0x180 + IconQuestion + IconWarning + IconError + + // Tool icons + +) + // Hints specifies rendering hints for a particular pattern. Elements can take // these into account in order to gain extra performance. type Hints struct {