sync all sliders with the font slider where possible
This commit is contained in:
parent
9b18e35aaa
commit
502250b44d
|
@ -19,7 +19,7 @@ draw_settings_menu = function()
|
|||
w=10, h=10,
|
||||
-- extremes
|
||||
lo=20, hi=40, -- font sizes
|
||||
value=Current_pane.editor_state.font_height
|
||||
value=Current_pane.editor_state.font_height,
|
||||
}
|
||||
draw_slider(Settings_font_slider)
|
||||
y = y+10
|
||||
|
@ -30,30 +30,31 @@ draw_settings_menu = function()
|
|||
love.graphics.print('fg', x+20, y)
|
||||
App.color(Foreground_color)
|
||||
love.graphics.rectangle('fill', sx-20,y+5, 20,20)
|
||||
local prev = Settings_font_slider
|
||||
Settings_foreground_sliders = {
|
||||
r = {
|
||||
name='fg/r',
|
||||
x0 = sx+20, x1=Safe_width-30,
|
||||
y0 = y,
|
||||
w=10, h=10,
|
||||
lo = 0, hi=1,
|
||||
value = Foreground_color.r
|
||||
x0=prev.x0, x1=prev.x1,
|
||||
y0=y,
|
||||
w=prev.w, h=prev.h,
|
||||
lo=0, hi=1,
|
||||
value=Foreground_color.r,
|
||||
},
|
||||
g = {
|
||||
name='fg/g',
|
||||
x0 = sx+20, x1=Safe_width-30,
|
||||
y0 = y+15,
|
||||
w=10, h=10,
|
||||
lo = 0, hi=1,
|
||||
value = Foreground_color.g
|
||||
x0=prev.x0, x1=prev.x1,
|
||||
y0=y+15,
|
||||
w=prev.w, h=prev.h,
|
||||
lo=0, hi=1,
|
||||
value=Foreground_color.g,
|
||||
},
|
||||
b = {
|
||||
name='fg/b',
|
||||
x0 = sx+20, x1=Safe_width-30,
|
||||
y0 = y+30,
|
||||
w=10, h=10,
|
||||
lo = 0, hi=1,
|
||||
value = Foreground_color.b
|
||||
x0=prev.x0, x1=prev.x1,
|
||||
y0=y+30,
|
||||
w=prev.w, h=prev.h,
|
||||
lo=0, hi=1,
|
||||
value=Foreground_color.b,
|
||||
},
|
||||
}
|
||||
App.color(Normal_color)
|
||||
|
@ -69,25 +70,25 @@ draw_settings_menu = function()
|
|||
Settings_background_sliders = {
|
||||
r = {
|
||||
name='bg/r',
|
||||
x0 = sx+20, x1=Safe_width-30,
|
||||
y0 = y,
|
||||
w=10, h=10,
|
||||
lo = 0, hi=1,
|
||||
value = Background_color.r
|
||||
x0=prev.x0, x1=prev.x1,
|
||||
y0=y,
|
||||
w=prev.w, h=prev.h,
|
||||
lo=0, hi=1,
|
||||
value=Background_color.r
|
||||
},
|
||||
g = {
|
||||
name='bg/g',
|
||||
x0 = sx+20, x1=Safe_width-30,
|
||||
y0 = y+15,
|
||||
w=10, h=10,
|
||||
lo = 0, hi=1,
|
||||
value = Background_color.g
|
||||
x0=prev.x0, x1=prev.x1,
|
||||
y0=y+15,
|
||||
w=prev.w, h=prev.h,
|
||||
lo=0, hi=1,
|
||||
value=Background_color.g
|
||||
},
|
||||
b = {
|
||||
name='bg/b',
|
||||
x0 = sx+20, x1=Safe_width-30,
|
||||
x0 = prev.x0, x1=prev.x1,
|
||||
y0 = y+30,
|
||||
w=10, h=10,
|
||||
w=prev.w, h=prev.h,
|
||||
lo = 0, hi=1,
|
||||
value = Background_color.b
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue