| 1404 | } |
| 1405 | |
| 1406 | void RichText::setVerticalAlignment(ax::ui::RichText::VerticalAlignment a) |
| 1407 | { |
| 1408 | if (static_cast<RichText::VerticalAlignment>(_defaults.at(KEY_VERTICAL_ALIGNMENT).asInt()) != a) |
| 1409 | { |
| 1410 | _defaults[KEY_VERTICAL_ALIGNMENT] = static_cast<int>(a); |
| 1411 | _formatTextDirty = true; |
| 1412 | } |
| 1413 | } |
| 1414 | |
| 1415 | void RichText::setFontColor(std::string_view color) |
| 1416 | { |