Widget Themes
Fallback widget theme
The widget theme for all widgets if not specified otherwise.
ID: fallback (or none if at top level) Hover ID: fallback:hover or just :hover
Properties:
width: positive integer defining the widgets default width (default is 18)height: positive integer defining the widgets default height (default is 18)color: a color, which is applied to background and overlay which are not icons (default is white)textColor: a color, which is applied to text (default is#404040(dark grey))iconColor: a color, which is applied to icons in background or overlay (default is white)background: a drawable, which will be displayed in the background of the widget (default is empty)textShadow: a boolean (trueorfalse) which determines if a shadow should be applied to text (default isfalse)
Fall back hover theme has the same defaults.
Panel theme
This widget theme is applied to all panels.
ID: panel
Properties
All of fallback widget theme and no additional properties.
- default
widthvalue is 176 - default
heightvalue is 166 - default
backgroundisvanilla_background
Button theme
This widget theme is applied to all buttons and cycle buttons.
ID: button
Properties
All of fallback widget theme and no additional properties.
- default
textColoris white - default
textShadowistrue - default
backgroundismc_background - default hover
backgroundismc_button_hovered
Close button theme
This widget theme is applied to close buttons (usually top right corner of a sub panel to close the panel).
ID: closeButton
Properties
All of fallback widget theme and no additional properties.
- defaults are same as button theme and additionally
- default
widthis 10 - default
heightis 10
Slot theme
This widget theme is applied to item/fluid slots.
ID: itemSlot for item slots and fluidSlot for fluid slots
Properties
All of fallback widget theme and
slotHoverColor: a color, which is rendered above everything in the widget (default is#60FFFFFF(non-opaque white))- default
backgroundfor item slot isslot_item(vanilla item slot texture) - default
backgroundfor fluid slot isslot_fluid(darker item slot texture)
Text field theme
This widget theme is applied to all text fields.
ID: textField
Properties
All of fallback widget theme and
markedColor: a color, which is rendered behind a part text when it is markedhintColor: a color, which is applied to the hint text, which appears when the field is empty- default
backgroundisdisplay_small(black rectangle with thin grey border) - default
widthis 56 - default
heightis 18 - default
textColoris white
Toggle button theme
This widget theme is applied to all toggle buttons.
ID: toggleButton
Properties
All of fallback widget theme and
selectedColor: a color, which is applied to background and overlay which are not icons when the button is toggled (default is white)selectedTextColor: a color, which is applied to text when the button is toggled (default is white)selectedIconColor: a color, which is applied to icons in background or overlay when the button is toggled (default is white)selectedBackground: a drawable, which will be displayed in the background of the widget when the button is toggled (default ismc_button_disabled)selectedTextShadow: a boolean (trueorfalse) which determines if a shadow should be applied to text when the button is toggled (default istrue)- default
textColoris white - default
textShadowistrue - default
backgroundismc_background - default hover
backgroundismc_button_hovered(selectedBackgrounddoesn't change on hover)
Sub widget themes
itemSlot:playerinherits fromitemSlotand is applied to player slotsitemSlot:playerHotbarinherits fromitemSlot:playerand is applied to player hotbar slotsitemSlot:playerMainInventoryinherits fromitemSlot:playerand is applied to player main inventory slots (excluding hotbar)itemSlot:playerArmorinherits fromitemSlot:playerand is applied to player armor slotsitemSlot:playerOffhandinherits fromitemSlot:playerand is applied to player offhand slots
