-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
Could it be, that modals dont restyle?
(I am working with teacup along promotion)
I have this simple UIView which works with restyle!
class HomeScreen < PM::Screen
title "Dashboard"
stylesheet :home_screen
layout :layout_style do
subview UILabel, :featured_title
end
def on_load
open_modal WelcomeScreen
end
def on_rotate
self.view.backgroundColor = UIColor.grayColor
self.view.restyle!
end
endBut this does not work (same code in a modal window)
class WelcomeScreen < PM::Screen
title "Please login first"
stylesheet :welcome
layout :welcome_background do
subview UILabel, :featured_title
end
def on_rotate
self.view.backgroundColor = UIColor.grayColor
self.view.restyle!
end
def dismiss_modal
close saved: true
end
endMetadata
Metadata
Assignees
Labels
No labels