diff --git a/src/eepp/ui/uiscenenode.cpp b/src/eepp/ui/uiscenenode.cpp index a7d1e3a1f..604199e8f 100644 --- a/src/eepp/ui/uiscenenode.cpp +++ b/src/eepp/ui/uiscenenode.cpp @@ -294,8 +294,9 @@ std::vector UISceneNode::loadNode( pugi::xml_node node, Node* parent, auto type = widget.attribute( "type" ); auto href = widget.attribute( "href" ); auto rel = widget.attribute( "rel" ); - if ( !href.empty() && ( String::iequals( type.value(), "text/css" ) || - String::iequals( rel.value(), "stylesheet" ) ) ) { + if ( !href.empty() && + ( String::iequals( type.value(), "text/css" ) || + String::icontains( std::string_view{ rel.value() }, "stylesheet" ) ) ) { loadCSS( href.as_string() ); } continue; diff --git a/src/eepp/ui/uitextspan.cpp b/src/eepp/ui/uitextspan.cpp index 06cda2857..41532a831 100644 --- a/src/eepp/ui/uitextspan.cpp +++ b/src/eepp/ui/uitextspan.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -193,6 +194,7 @@ UITextSpan* UITextSpan::setText( const String& text ) { mText = text; onTextChanged(); notifyLayoutAttrChange(); + invalidateDraw(); } return this; } @@ -238,6 +240,7 @@ UITextSpan* UITextSpan::setFontSize( const Uint32& characterSize ) { mRichText.invalidate(); onFontStyleChanged(); notifyLayoutAttrChange(); + invalidateDraw(); } return this; } @@ -253,6 +256,7 @@ UITextSpan* UITextSpan::setFontStyle( const Uint32& fontStyle ) { mRichText.invalidate(); onFontStyleChanged(); notifyLayoutAttrChange(); + invalidateDraw(); if ( auto* newFont = getUISceneNode()->reevaluateFontStyle( mRichText.getFontStyleConfig().getFont(), fontStyle ) ) @@ -275,6 +279,7 @@ UITextSpan* UITextSpan::setTextDecoration( const Uint32& textDecoration ) { mRichText.invalidate(); onFontStyleChanged(); notifyLayoutAttrChange(); + invalidateDraw(); } return this; } @@ -290,6 +295,7 @@ UITextSpan* UITextSpan::setOutlineThickness( const Float& outlineThickness ) { mRichText.invalidate(); onFontStyleChanged(); notifyLayoutAttrChange(); + invalidateDraw(); } return this; } @@ -304,6 +310,7 @@ UITextSpan* UITextSpan::setOutlineColor( const Color& outlineColor ) { mStyleState |= StyleStateOutlineColor; mRichText.invalidate(); onFontStyleChanged(); + invalidateDraw(); } return this; } @@ -318,6 +325,7 @@ UITextSpan* UITextSpan::setFontColor( const Color& color ) { mStyleState |= StyleStateFontColor; mRichText.invalidate(); onFontStyleChanged(); + invalidateDraw(); } return this; } @@ -332,6 +340,7 @@ UITextSpan* UITextSpan::setFontBackgroundColor( const Color& color ) { mStyleState |= StyleStateFontBackgroundColor; mRichText.invalidate(); onFontStyleChanged(); + invalidateDraw(); } return this; } @@ -351,6 +360,7 @@ UITextSpan* UITextSpan::setFontShadowColor( const Color& color ) { mRichText.invalidate(); onFontStyleChanged(); notifyLayoutAttrChange(); + invalidateDraw(); } return this; } @@ -366,6 +376,7 @@ UITextSpan* UITextSpan::setFontShadowOffset( const Vector2f& offset ) { mRichText.invalidate(); onFontStyleChanged(); notifyLayoutAttrChange(); + invalidateDraw(); } return this; }