_S3DW_STYLE(9)
π _S3DW_STYLE(9) π
okay bestie, welcome to the s3d manual β¨ this one's about s3dw_style, aka the glow-up station for your widgets. it's a whole struct, it lives in <s3dw.h>, and it's how you make your buttons not look like sad default grey rectangles. let's get into it π
πΈ NAME πΈ
s3dw_style β the style of an s3d widget π
β¨ SYNOPSIS β¨
#include <s3dw.h>
π¦ STRUCTURE MEMBERS π¦
here's the whole struct, no gatekeeping:
struct _s3dw_style {
const char *name;
const char *fontface;
float surface_mat;
float input_mat;
float inputback_mat;
float text_mat;
float title_mat;
float title_text_mat;
}
π DESCRIPTION π
so with s3dw_style you can change the colors/materials of your widgets. slay. and the materials work the exact same way as in s3d_push_materials_a β meaning it's red, green, blue and alpha float values (between 0.0 and 1.0) for ambience, specular and diffuse color. iykyk π«Ά
nameβ the name of the style ... ngl it's kind of redundant πfontfaceβ the font face for all used fontssurface_matβ the material for the surface backgroundinput_matβ the material for button boxes and other widgetsinputback_matβ the material for the input field backgroundtext_matβ the material for the text on buttons and inputstitle_matβ the material for the title bartitle_text_matβ the material for the text on the title bar
π AUTHOR π
Simon Wunderlich
- Author of s3d
and that's the whole vibe check, bestie π go forth and make your widgets pretty. this was s3d, the _S3DW_STYLE(9) page, no cap β¨ mwah π
ππ¦
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms