I've don't bare metal development and drawn simple graphics with a linear frame buffer, but for a UI like this or Windows, I'm wondering how the images that represent the UI components are generated.
I don't see any png files for window borders, but I do see code for setting pixels to the correct color for a theme.
Are UI components in an OS usually programmed and not created in an image editor and then tiled?