Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS
Apache License 2.0
848 stars 134 forks source link

Can't style UIWindow #107

Open bejo opened 10 years ago

bejo commented 10 years ago

I seems like I'm not able to style UIWindow, I'm trying to change a background color:

window {
  color: #ff0000;
}

According to the docs I should use the 'color' property, but I tried with 'background-color' and it still didn't work. Also, I tried defining a class and setting 'styleClass' value on the main window, but still no luck:

.test {
  color: #ff0000;
}

[self.window setValue:@"test" forKeyPath:@"styleClass"];

The framework works fine with other kind views, hence at this point I'm suspecting that this could be a bug.

PS. I'm using version 2.1.3.

zhigang1992 commented 10 years ago

Also tintColor doesn't work as well