PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.
Apache License 2.0
105 stars 65 forks source link

backgroundColor not setting #176

Closed bradrice closed 6 years ago

bradrice commented 6 years ago

Not a big deal, but for some reason, backroundColor="red" is not setting a color for me.

I have been able to set it using css this way:

DropDown { height: 40; background-color: blue; color: #fff; margin: 12; padding: 12; border-radius: 4; }

I would like to be able to set some other values on the StackLayout within DropDown but this doesn't seem to work.

DropDown>StackLayout>Label { color: red; border-width: 1; border-color: #fff; }

PeterStaev commented 6 years ago

You cannot style system created elements within the drop down. I guess you want to have different styles for the label and the items within the drop down. If so you can track progress on #142 .

bradrice commented 6 years ago

I've been able to get it to look a lot like I want it to look just being able to style the DropDown. However, for some reason I have lost the little pull down triangle. I made the background a dark color. Is there a way to make the triangle pulldown white, too?

PeterStaev commented 6 years ago

Currently there is no such possibility (see #37). Also the arrow disappears if you have applied borders (#91)

PeterStaev commented 6 years ago

No further response so closing this one for now.