mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
## About The Pull Request > [!IMPORTANT] > This PR need's a tgui-core v2 release > Until then, and until I'm sure everything is fine and I'm satisfied, PR will be in the draft. > Also TestMerge would be useful as there are quite a lot of changes and I might have made a mistake somewhere Moving all SCSS variables to 21th century technology - [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/var) All variables are taken from and depend on tgui-core. However, you are free to create completely new variables as well as tgui-core-dependent variables. This step gives you much more flexibility when creating themes and manipulating colors For more details, go [here](https://github.com/tgstation/tgui-core/pull/112) Also a few little things: - Links in chat got a new colors and no underline on hover - TGsay scrollbar replaced with thin default scrollbar ### Themes Some themes started to look a little different, as well as more coherent, since the replaced color changes in all components, not just the imported ones <details> <summary> Examples </summary> Terminal | Before | After | Before - KitchenSink | After - KitchenSink | - | - | - | - | |  |  |  |  | NTOS95 | Before | After | Before - KitchenSink | After - KitchenSink | - | - | - | - | |  |  |  |  | </details> These are not all the themes that have received improvements, but in the rest of them they are small There may also be bugs, so TestMerge is highly recommended ### TGchat unread counter I've made some changes into the chat tab unread coutner, you can see it bellow It now takes up no space in the tab and has absolute positioning in the top right corner  ### TODO - [x] Migrate all themes to CSS Variables - [x] Migrate all UI styles to CSS Variables - [x] _Test everything I can get with my hands on to make sure nothing is missing or broken_ Also, I think in the future it would be good to drop color.scss, base.scss and functions.scss files from the repository and use tgui-core files. ### Removed as unused style files I can't find any defined in it classes as used 1. PersonalCrafting.scss 2. TachyonArray.scss 3. UtilityModulesPane.scss ## Why It's Good For The Game All compiled styles have a much smaller size, as there is no need to use SCSS to compile themes, in fact it is enough just to change the values of variables It also gives you the ability to use custom cursors in themes if you override --cursor-xxx variables After all themes migration: 763kb -> 210kb tgui.bundle.css As well as more consistent colors in the theme and the ability to create MORE diverse themes, of varying degrees of complexity And... maybe... light theme for TGUI ## Changelog 🆑 refactor: All TGUI styles was migrated to CSS Variables, if you find something odd in styles, feel free to make an issue on GitHub /🆑 --------- Co-authored-by: jlsnow301 <jlsnow301@pm.me>
15 lines
275 B
JSON
15 lines
275 B
JSON
{
|
|
"private": true,
|
|
"name": "tgui-dev-server",
|
|
"version": "6.0.0",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@types/ws": "^8.5.13",
|
|
"axios": "^1.7.7",
|
|
"glob": "^7.2.3",
|
|
"source-map": "^0.7.4",
|
|
"stacktrace-parser": "^0.1.10",
|
|
"ws": "^8.18.0"
|
|
}
|
|
}
|