Skip to content

Guerilla Stylesheet Reference#

Here, you can find the stylesheet selectors for the various UI that is found primarily in Guerilla. Note that some of these may also be used in other tools - for instance, both Sapien and Foundry are capable of providing a tag editor UI - and as such, will use the same controls and thus the same stylesheet selectors as below.

Tag Editor Frame#

The frame of any tag editing UI can be selected with #tag_editor_frame, and is a QFrame.

Tag Fields#

Tag Blocks#

Tag Block Preview

The primary selector for a tag block is #ui_tag_block. Below are the child controls of a tag block that can be selected for and styled.

Title Selector Description Type
Expand/Collapse Button #btn_expand_collapse The expand/collapse button in the tag header. QPushButton
Expand/Collapse Button Frame #btn_expand_collapse_frame A frame around the Expand/Collapse button. Used to add a second border around the button in the Classic theme. QFrame
Block Header Panel #block_header_bg The top header panel of the block, containing various block controls. QFrame
Block Left Border #block_edge_bg The left border edge of the tag block. QFrame
Block Title #lbl_block_title The block title label. QLabel
Entry List ComboBox #cbox_entries The ComboBox containing the list of block entries. QComboBox
Add Button #btn_add The 'Add' button. QPushButton
Insert Button #btn_insert The 'Insert' button. QPushButton
Duplicate Button #btn_duplicate The 'Duplicate' button. QPushButton
Delete Button #btn_delete The 'Delete' button. QPushButton
Delete All Button #btn_delete_all The 'Delete All' button. QPushButton
Field List Container #block_fields_frame The container that contains all block fields. QFrame

Comments#

Comment Preview

The primary selector for a comment field is #ui_comment_field. Below are the child controls of a comment that can be selected for and styled.

Title Selector Description Type
Comment Frame #comment_frame The frame and container around the comment. QFrame
Comment Title #lbl_title The title of the comment. QLabel
Comment Description #lbl_explanation The description of the comment. Not always present. QLabel

Bitfields#

Bitfield Preview

Bitfield fields can be selected using #bitfield_field_{id}, replacing {id} with the ID of the field.

The container of the bitfield flags a QFrame, which can be selected using #bitfield_frame.

Each bitfield bit is a QCheckBox widget. If you need or wish to select for an exact bit/flag ID, you can do so with #bitfield_bit_{id}, replacing {id} with the ID of the bit.

Enums#

Enum Preview

Enum fields can selected by using #enum_field_{id}, replacing {id} with the ID of the field. The field value is represented using a QComboBox as a child control.

Ascii#

Ascii Preview

Ascii fields can selected by using #ascii_field_{id}, replacing {id} with the ID of the field. The field value is represented using a QLineEdit as a child control.

Integers (int8, int16, int32)#

Integer Preview

Integer fields can selected by using #int_field_{id}, replacing {id} with the ID of the field. The field value is represented using a QLineEdit as a child control.

Floats (float32)#

Integer Preview

Float fields can selected by using #float_field_{id}, replacing {id} with the ID of the field. The field value is represented using a QLineEdit as a child control.

Output Window#

Output Window Preview

The Output Window can be selected using #guerilla_console_output, and is a QDockWidget. To select the output text field, you can select it with #output_text.