diff options
author | Gustavo Lima Chaves <glima@profusion.mobi> | 2010-11-18 10:01:24 +0000 |
---|---|---|
committer | Gustavo Lima Chaves <glima@profusion.mobi> | 2010-11-18 10:01:24 +0000 |
commit | 95b50c1cb56b5fc69556c21c831778dd91d8e3a7 (patch) | |
tree | b72cb42782fba5f2a3586646556cb710d26f1b23 /data/objects | |
parent | 2bd026820379a21fcc9eb3d3059487d170928512 (diff) | |
download | elementary-95b50c1cb56b5fc69556c21c831778dd91d8e3a7.tar.gz |
Elementary welcomes text classes support.
I'm now populating the default theme with text classes, just commit
with one for now. There can be tweakings at Elm config app's UI fonts
page, I know, but that will come later (editable preview field, font
hinting/fallback, blablabla).
WARNING: for users testing elm config, an old "rm -rf
~/.elementary/config" might be needed here, after this commit.
SVN revision: 54681
Diffstat (limited to 'data/objects')
-rw-r--r-- | data/objects/Makefile.am | 12 | ||||
-rw-r--r-- | data/objects/font_preview.edc | 40 |
2 files changed, 49 insertions, 3 deletions
diff --git a/data/objects/Makefile.am b/data/objects/Makefile.am index 7a2a16e11..0f80b6c4b 100644 --- a/data/objects/Makefile.am +++ b/data/objects/Makefile.am @@ -6,13 +6,14 @@ EDJE_FLAGS = -v -id $(top_srcdir)/data/objects -fd $(top_srcdir)/data/objects filesdir = $(datadir)/elementary/objects -files_DATA = test.edj multip.edj colorpreview.edj cursors.edj +files_DATA = test.edj multip.edj colorpreview.edj cursors.edj font_preview.edj EXTRA_DIST = \ test.edc \ multip.edc \ colorpreview.edc \ cursors.edc \ +font_preview.edc \ grid_bg.png \ over.png \ under.png \ @@ -24,7 +25,7 @@ test.edj: Makefile $(EXTRA_DIST) $(EDJE_CC) $(EDJE_FLAGS) \ $(top_srcdir)/data/objects/test.edc \ $(top_builddir)/data/objects/test.edj - + multip.edj: Makefile $(EXTRA_DIST) $(EDJE_CC) $(EDJE_FLAGS) \ $(top_srcdir)/data/objects/multip.edc \ @@ -39,6 +40,11 @@ cursors.edj: Makefile $(EXTRA_DIST) $(EDJE_CC) $(EDJE_FLAGS) \ $(top_srcdir)/data/objects/cursors.edc \ $(top_builddir)/data/objects/cursors.edj - + +font_preview.edj: Makefile $(EXTRA_DIST) + $(EDJE_CC) $(EDJE_FLAGS) \ + $(top_srcdir)/data/objects/font_preview.edc \ + $(top_builddir)/data/objects/font_preview.edj + clean-local: rm -f *.edj diff --git a/data/objects/font_preview.edc b/data/objects/font_preview.edc new file mode 100644 index 000000000..302c2e85e --- /dev/null +++ b/data/objects/font_preview.edc @@ -0,0 +1,40 @@ +color_classes { + color_class { + name: "entry_text"; + color: 0 0 0 255; + } +} + +collections { + + group { name: "font_preview"; + parts { + + /* some fonts have weird alignments, thus they overflow badly */ + part { name: "clipper"; + type: RECT; + description { + state: "default" 0.0; + } + } + + part { name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + clip_to: "clipper"; + description { + state: "default" 0.0; + color_class: "entry_text"; + text { + font: "Sans"; + min: 0 1; + size: 10; + align: 0.5 0.5; + text_class: "font_preview"; + } + } + } + } + } +} |