_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 fonts
  • surface_mat β€” the material for the surface background
  • input_mat β€” the material for button boxes and other widgets
  • inputback_mat β€” the material for the input field background
  • text_mat β€” the material for the text on buttons and inputs
  • title_mat β€” the material for the title bar
  • title_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 πŸ’…πŸŽ€πŸ¦‹