I have a bootstrap in a web app project. Here is a link to the Bootstrap Bootswatch: United
It appears that there are a number of different heading and other text sizes. How can these be used? Right now my app only uses whatever is out of the box in this theme. What I want to be able to do is to set the font and field sizes smaller than what they are naturally.
Can anyone point me in the right direction to understand how to utilize the full benefits of a bootstrap theme?
What about font sizes in WebTextFields, and Buttons etc? Do they all need to be customized like you suggest? Or is there a more “Global” way to do it?
I used the following code to solve my particular issue.
For i As Integer = 0 To Self.ControlCount - 1
' Check if the control is a DesktopTextField
If Self.ControlAt(i) IsA WebTextField Then
' Cast the control to a TextField in order to access the Text property
WebTextField(Self.ControlAt(i)).Style.FontSize = 15
ElseIf Self.ControlAt(i) IsA WebPopupMenu Then
WebTextField(Self.ControlAt(i)).Style.FontSize = 15
ElseIf Self.ControlAt(i) IsA WebLabel Then
WebTextField(Self.ControlAt(i)).Style.FontSize = 15
End If
Next
It looks like the WebListbox uses the body CSS section, so instead of using .XojoLabel you can use body (note: haven’t tested all Xojo controls, I’m not sure what else the body class will change)