fix regression where a blank tc.preset wouldn't get properly initalized.

Fix text_bg_color not being set properly
This commit is contained in:
2026-07-20 10:22:47 +02:00
parent eb89d37a7c
commit 0d03fb4979
3 changed files with 8 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ var stored_slot_color = max.getcolor("theme_accentcolor"); //[0.502, 0.502, 0.50
var interp_slot_color = [1.0, 1.0, 1.0, 0.8];
var border_color = [1.0, 1.0, 1.0, 0.85];
var text_color = max.getcolor("theme_textcolor"); //[0.129, 0.129, 0.129, 1];
var text_bg_color = set_text_bg_color();
var text_bg_color; set_text_bg_color();
var edited_color = [1, 0.49, 0.263, 1];
var color_1 = [0.743, 0.41, 0.501, 1]; // Color set for the filled slots. I don't like how this is declared. More info in color_wheel() declaration
@@ -497,13 +497,11 @@ paint_base.local = 1;
function paint()
{
// post("redraw\n");
if (is_jsui) {
// Handling Presentation mode enable/disable
var cur_size = mgraphics.size;
if (cur_size[0] != ui_width || cur_size[1] != ui_height) {
onresize(cur_size[0], cur_size[1]);
return
}
// Handling Presentation mode enable/disable
var cur_size = mgraphics.size;
if (cur_size[0] != ui_width || cur_size[1] != ui_height) {
onresize(cur_size[0], cur_size[1]);
return
}
mgraphics.select_font_face(font_name);

View File

@@ -1,7 +1,7 @@
{
"name" : "tc.preset",
"displayname" : "",
"version" : "1.5.0",
"version" : "1.5.1",
"author" : "Théophile Clet",
"authors" : [ ],
"description" : "A jsui replacement for the preset object",

View File

@@ -1,7 +1,7 @@
{
"name" : "tc.preset",
"displayname" : "",
"version" : "1.5.0",
"version" : "1.5.1",
"author" : "Théophile Clet",
"authors" : [ ],
"description" : "A v8ui replacement for the preset object",