1 // these styling fix all kinds of icons in grid, treeview etc.
3 // most icons just use the color attribute..
4 // Running containers and VMS
5 .x-grid-icon-custom.running,
6 .x-tree-icon-custom.running,
7 // Icons in trees (e.g. Resource tree)
9 // Icons in panels, e.g. Search tab
15 // Icon for cluster nodes
17 // e.g. storage list when creating a guest
18 .x-action-col-icon::before,
20 .fa-file-text-o::before,
23 .x-tab-icon-el-default,
24 .pve-icon-verify-lettering::after,
25 // the small plane when migrating a vm
26 .x-tree-icon-custom.lock-migrate::after,
27 .x-grid-icon-custom.lock-migrate::after,
28 // e.g. permission tree view in pve
29 .x-tree-icon-leaf:not(.x-tree-icon-custom)::before,
30 .x-tree-icon-parent:not(.x-tree-icon-custom)::before,
31 .x-tree-icon-parent-expanded:not(.x-tree-icon-custom)::before,
32 .x-grid-filters-filtered-column .x-column-header-text::after {
36 // but some are implement as background SVGs or PNGs. invert them via
40 .fa-network-wired::before,
41 // Icon for "ISO Images" for storages
42 .pve-itype-treelist-item-icon-cdrom,
44 .fa-chevron-right::before,
45 // icon indicating a currently open shell session in the task viewer
47 // the "triangle" that appears when the sidebar becomes scrollable
48 .x-box-scroller-toolbar-default.x-box-scroller,
49 // the small triangles in the tree view next to nodes etc.
51 // the computer icon in the resource pool add menu
53 .x-tree-node-computer,
54 .x-grid-tree-node-expanded .x-tree-node-computer,
57 .x-tree-icon-leaf:not(.x-tree-icon-custom),
58 // default tree panel icons (api viewer, pbs backup panel)
59 .x-tree-icon-parent:not(.x-tree-icon-custom),
60 .x-tree-icon-parent-expanded:not(.x-tree-icon-custom) {
61 filter: invert($icon-brightness);
64 // the following icons need some additional fix-ups to work well in
65 // grids (e.g. when hovered etc.)
66 // Icon for the processor in VM hardware settings
68 // Icon for memory in VM hardware settings
69 .pve-itype-icon-cdrom,
70 // Icon for memory in VM hardware settings
71 .pve-itype-icon-memory,
72 // the pcie device icon in the vm hardware section
74 // the serial device icon in the vm hardware section
75 .pve-itype-icon-serial,
76 // the rng icon in the vm hardware section
78 // Processor icon for summary page
79 .pmx-itype-icon-processor,
80 // Memory icon on summary page
81 .pmx-itype-icon-memory,
82 // the mount point icon for containers
83 .pve-itype-icon-storage,
84 .x-tree-node-harddisk,
85 .x-grid-tree-node-expanded .x-tree-node-harddisk {
86 filter: invert($icon-brightness);
88 // the filter also applies to the text next to the icon
93 .x-grid-cell-inner::before {
94 // this is a somewhat hacky work-around for the focus borders on
95 // these elements. since we use the invert filter to fix the icon
96 // color we need to also invert the border color first too, not
97 // just the text. add "!important" to properly override.
98 border-color: invert($primary-color, $weight: 90%) !important;
102 // pbs show task log in longest task list column
103 .x-action-col-icon.fa-chevron-right::before {
107 /* a bit of a hack, but otherwise the expanders and collapsers are barely visible */
108 .x-tree-arrows .x-tree-expander {
109 filter: brightness(200%);
111 .x-tree-arrows .x-tree-expander-over .x-tree-expander {
112 filter: brightness(0);
115 // checkboxes and radio buttons
116 .x-form-checkbox-default,
117 .x-form-radio-default,
118 .x-column-header-checkbox .x-column-header-checkbox::after,
119 .x-grid-checkcolumn::after,
120 // checkboxes without the extra "blueish" active states
121 .x-menu-item-checked .x-menu-item-icon-default.x-menu-item-checkbox,
122 .x-menu-item-unchecked .x-menu-item-icon-default.x-menu-item-checkbox {
123 filter: invert($icon-brightness) hue-rotate(180deg) brightness(125%);
127 .x-grid-icon-custom {
132 text-shadow: -1px 0 1px $background-darker;
135 // stopped containers and VMs
137 // vms/cts that are offline
139 // question mark at the bottom right of e.g. unreachable storages
141 color: $icon-color-alt;
150 background-color: $background-darker;
155 // icons for templates in the storages view
156 .x-treelist-item-icon {
159 background-color: $background-darker;
164 .x-grid-item .x-grid-icon-custom {
167 background-color: $background-darker;
171 .x-grid-item-alt .x-grid-icon-custom {
174 background-color: $background-darkest;
178 .x-treelist-item-selected {
181 background-color: $primary-color;
182 text-shadow: -1px 0 1px $primary-color;
187 // hovered items in treelists
188 .x-treelist-item-over,
189 // template icons when in selected menu item or table row
190 .x-grid-item-selected,
191 // vm/ct that is focused (e.g. by mouse-down)
192 .x-keyboard-mode .x-grid-item-focused {
195 background-color: $selection-background-color !important;
196 text-shadow: -1px 0 1px $selection-background-color;
200 .x-action-col-icon:hover {
203 text-shadow: -1px 0 1px $background-darker;
207 // The usage icons dynamically displaying how full a storage is
209 border: 1px solid $icon-color;
213 background-color: transparent;
217 background-color: $icon-color;