bug fixes related to styling

This commit is contained in:
paul
2024-10-01 11:22:45 +05:30
parent f8dbd10231
commit ee8b2a0cae
13 changed files with 84 additions and 20 deletions

View File

@@ -33,10 +33,18 @@ class MainWindow extends TkinterBase{
}
// componentDidMount(){
// super.componentDidMount()
// //this.setAttrValue("styling", { backgroundColor: "#E4E2E2" }) refactor to something like this?
// this.setAttrValue("styling.backgroundColor", "#E4E2E2")
// console.log("mounted: ", this.state)
// }
componentDidMount(){
super.componentDidMount()
this.setAttrValue("styling.backgroundColor", "#E4E2E2")
// this.setWidgetName("main") // Don't do this as this will cause conflicts while loading names
super.componentDidMount()
}
generateCode(variableName, parent){
@@ -80,7 +88,7 @@ class MainWindow extends TkinterBase{
</div>
</div>
<div className="tw-p-2 tw-w-full tw-relative tw-h-full tw-overflow-hidden tw-content-start"
style={this.state.widgetInnerStyling}>
style={this.getInnerRenderStyling()}>
{this.props.children}
</div>
</div>

View File

@@ -44,10 +44,10 @@ class OptionMenu extends TkinterWidgetBase{
}
}
componentDidMount(){
super.componentDidMount()
this.setWidgetInnerStyle("backgroundColor", "#fff")
this.setWidgetInnerStyle("backgroundColor", "#E4E2E2")
}
generateCode(variableName, parent){

View File

@@ -33,8 +33,8 @@ class TopLevel extends Widget{
}
componentDidMount(){
super.componentDidMount()
this.setAttrValue("styling.backgroundColor", "#E4E2E2")
super.componentDidMount()
}
generateCode(variableName, parent){