Forums

OverviewFelgo 2 Support (Qt 5) › Bug with ThemeSimpleRow on font sizes??

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23523

    jrrobles79

    Im having some issues trying to set the font sizes on the SimpleRow, the documentation said the default size is 16 px for the Text

    , but if I use this code:

     style.dividerColor: "transparent"
      style.textColor: iuboTheme.performerPurple
      style.fontSizeText: sp(12)
      style.activeTextColor: iuboTheme.performerPurple
      style.detailTextColor: iuboTheme.lightBlue
      style.fontSizeDetailText: sp(8)
    

     

    the fonts are bigger that the 16 pixel, and if I try it with out the ‘sp()’ the font is now very small:

     style.dividerColor: "transparent"
                        style.textColor: iuboTheme.performerPurple
                        style.fontSizeText: 12
                        style.activeTextColor: iuboTheme.performerPurple
                        style.detailTextColor: iuboTheme.lightBlue
                        style.fontSizeDetailText: 8
    

     

    I have a component called SmallLabel and I set the normal font pixel size is sp(12), and in there looks fine,   so Im confused of how to set this value

     

     

     

    #23549

    Alex
    Felgo Team

    Hi,

    the SimpleRow is internally already calling sp() for those font size style values, so you do not need to apply this when setting the value.

    Best,
    Alex

    #23553

    jrrobles79

    well I still have the same doubt, since I have set:

     

    style.fontSizeText: 12

     

    and the font is very small compared on other components where I have set the fontPixelSize to sp(12)

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.