[ease/themes] [themes] Make the defaults a little more attractive.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/themes] [themes] Make the defaults a little more attractive.
- Date: Wed, 21 Jul 2010 23:13:39 +0000 (UTC)
commit 062f25ddfda81b07cc46aba317a07a430fd39fba
Author: Nate Stedman <natesm gmail com>
Date: Wed Jul 21 19:07:18 2010 -0400
[themes] Make the defaults a little more attractive.
data/theme-defaults.json | 27 +++++++++++++++++----------
src/ease-theme.vala | 12 +++++++-----
2 files changed, 24 insertions(+), 15 deletions(-)
---
diff --git a/data/theme-defaults.json b/data/theme-defaults.json
index 655a1a8..4ac3147 100644
--- a/data/theme-defaults.json
+++ b/data/theme-defaults.json
@@ -5,36 +5,43 @@
"element-defaults" : {
"text-font" : "Bitstream Vera Sans",
- "text-size" : "12",
+ "text-size" : "18",
"text-style" : "Normal",
"text-variant" : "Normal",
"text-weight" : "500",
"text-align" : "left",
"text-color" : "#000000FF",
- "padding-top" : "10",
- "padding-left" : "10",
- "padding-right" : "10",
- "padding-bottom" : "10"
+ "padding-top" : "30",
+ "padding-left" : "30",
+ "padding-right" : "30",
+ "padding-bottom" : "30"
},
"elements" : {
"header-text" : {
- "height" : "30",
- "text-size" : "24"
+ "height" : "40",
+ "text-size" : "24",
+ "text-weight" : "600",
+ "padding-bottom" : "0"
},
"author-text" : {
"padding-top" : "0",
- "height" : "20",
+ "height" : "100",
"text-size" : "18",
"text-align" : "center"
},
"title-text" : {
- "height" : "30",
+ "height" : "50",
"text-size" : "28",
- "text-align" : "center"
+ "text-align" : "center",
+ "text-weight" : "600"
+ },
+
+ "content-text" : {
+ "padding-top" : "20"
}
},
diff --git a/src/ease-theme.vala b/src/ease-theme.vala
index ecaac65..2ac06d4 100644
--- a/src/ease-theme.vala
+++ b/src/ease-theme.vala
@@ -310,14 +310,15 @@ mk * The path to the theme's extracted files.
// create the slide's content
left = element_get(CONTENT_TEXT, PAD_LEFT).to_int();
- top += element_get(HEADER_TEXT, HEIGHT).to_int() +
+ top += element_get(HEADER_TEXT, HEIGHT).to_int() +
+ element_get(HEADER_TEXT, PAD_BOTTOM).to_int() +
element_get(CONTENT_TEXT, PAD_TOP).to_int();
slide.add(create_text(
CONTENT_TEXT,
left,
top,
width - left - element_get(CONTENT_TEXT, PAD_RIGHT).to_int(),
- height - top - element_get(HEADER_TEXT, PAD_BOTTOM).to_int()
+ height - top - element_get(CONTENT_TEXT, PAD_BOTTOM).to_int()
));
break;
@@ -365,10 +366,11 @@ mk * The path to the theme's extracted files.
text.y = y;
text.width = w;
text.height = h;
- text.identifier = type;
- // TODO: some manner of default text
- text.text = "Hello world!";
+ // set base properties
+ text.identifier = type;
+ text.has_been_edited = false;
+ text.text = "";
return text;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]