|
@@ -24,6 +24,7 @@
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <AK/JsonObject.h>
|
|
#include <AK/JsonValue.h>
|
|
#include <AK/JsonValue.h>
|
|
#include <LibGUI/BoxLayout.h>
|
|
#include <LibGUI/BoxLayout.h>
|
|
#include <LibGUI/Painter.h>
|
|
#include <LibGUI/Painter.h>
|
|
@@ -407,6 +408,13 @@ bool TabWidget::set_property(const StringView& name, const JsonValue& value)
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (name == "text_alignment") {
|
|
|
|
+ auto alignment = Gfx::text_alignment_from_string(value.to_string());
|
|
|
|
+ if (alignment.has_value())
|
|
|
|
+ set_text_alignment(alignment.value());
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
return Widget::set_property(name, value);
|
|
return Widget::set_property(name, value);
|
|
}
|
|
}
|
|
|
|
|