aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-06-16 10:57:20 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-06-16 10:57:20 +0000
commitdec6c71c1998a9636d957c936c15779eb5a9a30e (patch)
tree903e0a677a68036b29bb6eece321504164e0c0d7 /src/bin/options_font.c
parentmake 40x40 preview scale too. (diff)
downloadterminology-dec6c71c1998a9636d957c936c15779eb5a9a30e.tar.gz
and add mini+maxi "A" labels either side of the slider. now that looks
awesome. SVN revision: 72228
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index b3c5af0..02c5fe0 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -164,7 +164,7 @@ _cb_op_font_group_text_get(void *data, Evas_Object *obj, const char *part)
void
options_font(Evas_Object *opbox, Evas_Object *term)
{
- Evas_Object *o;
+ Evas_Object *o, *bx;
char buf[4096], *file, *fname, *s;
Eina_List *files, *fontlist, *l;
Font *f;
@@ -182,6 +182,14 @@ options_font(Evas_Object *opbox, Evas_Object *term)
fonthash = NULL;
}
+ bx = o = elm_box_add(opbox);
+ elm_box_horizontal_set(o, EINA_TRUE);
+
+ o = elm_label_add(opbox);
+ elm_object_text_set(o, "<font_size=6>A</font_size>");
+ elm_box_pack_end(bx, o);
+ evas_object_show(o);
+
op_fontslider = o = elm_slider_add(opbox);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
@@ -190,9 +198,17 @@ options_font(Evas_Object *opbox, Evas_Object *term)
elm_slider_indicator_format_set(o, "%1.0f");
elm_slider_min_max_set(o, 5, 45);
elm_slider_value_set(o, config->font.size);
- elm_box_pack_end(opbox, o);
+ elm_box_pack_end(bx, o);
evas_object_show(o);
+ o = elm_label_add(opbox);
+ elm_object_text_set(o, "<font_size=24>A</font_size>");
+ elm_box_pack_end(bx, o);
+ evas_object_show(o);
+
+ elm_box_pack_end(opbox, bx);
+ evas_object_show(bx);
+
evas_object_smart_callback_add(o, "delay,changed",
_cb_op_fontsize_sel, term);