diff options
author | William Reynish <billreynish> | 2018-06-25 18:01:50 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-06-25 18:01:54 +0300 |
commit | 153195da22e472aa09af0505ac9cd64039a6d910 (patch) | |
tree | c24a5617d58ca4ec78c9c7c0c3c42f2b631eea7f | |
parent | 5ddba52029b79788abb40088ed68913a99a70816 (diff) |
UI: Single-column layout for Texture Color
-rw-r--r-- | release/scripts/startup/bl_ui/properties_texture.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py index e5bf2c910a0..16e29d1ecc8 100644 --- a/release/scripts/startup/bl_ui/properties_texture.py +++ b/release/scripts/startup/bl_ui/properties_texture.py @@ -211,30 +211,25 @@ class TEXTURE_PT_colors(TextureButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True tex = context.texture - layout.prop(tex, "use_color_ramp", text="Ramp") - if tex.use_color_ramp: - layout.template_color_ramp(tex, "color_ramp", expand=True) - - split = layout.split() - - col = split.column() - col.label(text="RGB Multiply:") + col = layout.column() sub = col.column(align=True) - sub.prop(tex, "factor_red", text="R") + sub.prop(tex, "factor_red", text="Multiply R") sub.prop(tex, "factor_green", text="G") sub.prop(tex, "factor_blue", text="B") - col = split.column() - col.label(text="Adjust:") col.prop(tex, "intensity") col.prop(tex, "contrast") col.prop(tex, "saturation") - col = layout.column() col.prop(tex, "use_clamp", text="Clamp") + col.prop(tex, "use_color_ramp", text="Ramp") + if tex.use_color_ramp: + layout.use_property_split = False + layout.template_color_ramp(tex, "color_ramp", expand=True) class TextureTypePanel(TextureButtonsPanel): |