apply theme based on frame type.