Commit 11c6a68e authored by Jan Köster's avatar Jan Köster
Browse files

test

parent 76ecfb1f
Loading
Loading
Loading
Loading
+7 −0
Changes for editor/widgets/list/list.cpp: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -558,6 +558,10 @@ extern "C" {
                std::string lightCSS;
                if (!l_fontColor.empty()) lightCSS += " color: " + l_fontColor + " !important;";

                // Mobile light overrides
                std::string mobileLightCSS;
                if (!ml_fontColor.empty()) mobileLightCSS += " color: " + ml_fontColor + " !important;";

                std::string allMediaCSS;
                if (!mobileCSS.empty()) {
                    allMediaCSS += "@media (max-width: 768px) { ." + responsiveClass + " {" + mobileCSS + " } } ";
@@ -565,6 +569,9 @@ extern "C" {
                if (!lightCSS.empty()) {
                    allMediaCSS += "@media (prefers-color-scheme: light) { ." + responsiveClass + " {" + lightCSS + " } }";
                }
                if (!mobileLightCSS.empty()) {
                    allMediaCSS += "@media (max-width: 768px) and (prefers-color-scheme: light) { ." + responsiveClass + " {" + mobileLightCSS + " } }";
                }

                if (!allMediaCSS.empty()) {
                    libhtmlpp::HtmlElement styleTag("style");
+5 −0
Changes for editor/widgets/popup/popup.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -377,6 +377,11 @@ extern "C" {
                json_object_object_add(obj, "l_popup_text_color", json_object_new_string(l_popupTextColor.c_str()));
                json_object_object_add(obj, "m_popup_width", json_object_new_string(m_popupWidth.c_str()));

                json_object_object_add(obj, "ml_button_bg_color",   json_object_new_string(ml_buttonBgColor.c_str()));
                json_object_object_add(obj, "ml_button_text_color",  json_object_new_string(ml_buttonTextColor.c_str()));
                json_object_object_add(obj, "ml_popup_bg_color",     json_object_new_string(ml_popupBgColor.c_str()));
                json_object_object_add(obj, "ml_popup_text_color",   json_object_new_string(ml_popupTextColor.c_str()));

                json_object_object_add(obj, "hidden", json_object_new_boolean(hidden));
                json_object_object_add(obj, "m_hidden", json_object_new_boolean(m_hidden));
                json_object_object_add(obj, "custom_css", json_object_new_string(customCss.c_str()));