main: get accurate cross-platform background colour for properties tab
This commit is contained in:
parent
cc336366c9
commit
a653ef8ca4
3
main.go
3
main.go
@ -7,6 +7,7 @@ import (
|
||||
|
||||
"github.com/ying32/govcl/vcl"
|
||||
"github.com/ying32/govcl/vcl/types"
|
||||
"github.com/ying32/govcl/vcl/types/colors"
|
||||
)
|
||||
|
||||
type TMainForm struct {
|
||||
@ -138,7 +139,7 @@ func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
||||
f.propertiesBox.SetAlign(types.AlClient) // fill remaining space
|
||||
f.propertiesBox.SetReadOnly(true)
|
||||
f.propertiesBox.SetEnabled(true) // Need to leave it enabled so scrolling works
|
||||
f.propertiesBox.SetColor(0x00f0f0f0) // TODO get accurate disabled colour from the OS
|
||||
f.propertiesBox.SetColor(colors.ClForm) // 0x00f0f0f0
|
||||
|
||||
f.propertiesBox.SetBorderStyle(types.BsNone)
|
||||
f.propertiesBox.SetScrollBars(types.SsAutoVertical)
|
||||
|
Loading…
Reference in New Issue
Block a user