summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2008-04-28 20:14:44 +0800
committerSam Spilsbury <smspillaz@gmail.com>2008-04-28 20:14:44 +0800
commita0fbb1d47119da99394736ae1cbea77a32dbc488 (patch)
tree08f02f7a79cbfa7a4cf6edb77d454523f8e57a74
parentc99d671d7f4b1bf179dd315779f86b4176882d7e (diff)
downloadprompt-a0fbb1d47119da99394736ae1cbea77a32dbc488.tar.gz
prompt-a0fbb1d47119da99394736ae1cbea77a32dbc488.tar.bz2
* Option-o-fy backgroudn colour
-rw-r--r--prompt.c8
-rw-r--r--prompt.xml.in24
2 files changed, 21 insertions, 11 deletions
diff --git a/prompt.c b/prompt.c
index 5905de7..3d01ffb 100644
--- a/prompt.c
+++ b/prompt.c
@@ -126,10 +126,10 @@ promptRenderTitle (CompScreen *s, char *stringData)
tA.style |= TEXT_STYLE_BACKGROUND;
tA.backgroundHMargin = 10.0f;
tA.backgroundVMargin = 10.0f;
- tA.backgroundColor[0] = 0.0f;
- tA.backgroundColor[1] = 0.0f;
- tA.backgroundColor[2] = 0.0f;
- tA.backgroundColor[3] = 0.7f;
+ tA.backgroundColor[0] = promptGetTitleBackColorRed (s);
+ tA.backgroundColor[1] = promptGetTitleBackColorGreen (s);
+ tA.backgroundColor[2] = promptGetTitleBackColorBlue (s);
+ tA.backgroundColor[3] = promptGetTitleBackColorAlpha (s);
tA.family = "Sans";
tA.ellipsize = FALSE;
diff --git a/prompt.xml.in b/prompt.xml.in
index 16afdd9..55fa4ec 100644
--- a/prompt.xml.in
+++ b/prompt.xml.in
@@ -15,13 +15,6 @@
<screen>
<group>
<_short>Notification</_short>
- <option name="title_font_size" type="int">
- <_short>Font Size</_short>
- <_long>Font size for the window title</_long>
- <default>16</default>
- <min>6</min>
- <max>96</max>
- </option>
<option name="title_font_color" type="color">
<_short>Font Color</_short>
<_long>Font color for the window title</_long>
@@ -31,6 +24,23 @@
<blue>0xffff</blue>
<alpha>0xffff</alpha>
</default>
+ </option>
+ <option name="title_font_size" type="int">
+ <_short>Font Size</_short>
+ <_long>Font size for the window title</_long>
+ <default>16</default>
+ <min>6</min>
+ <max>96</max>
+ </option>
+ <option name="title_back_color" type="color">
+ <_short>Background Color</_short>
+ <_long>Background color for the window title</_long>
+ <default>
+ <red>0x0000</red>
+ <green>0x0000</green>
+ <blue>0x0000</blue>
+ <alpha>0x9999</alpha>
+ </default>
</option>
</group>
</screen>