Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-10-24 02:51:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-10-24 02:51:50 +0400
commit94dfb616a933280cb92f98e0665c97ac6a6223ca (patch)
tree52bb7bc228e08ef54ba069961c1ff4c1c91380f2 /source/blender/src/buttons_scene.c
parent5b0a79c7c76d2ddc62ffeec48ccfaf22c5f2bf65 (diff)
Patch by GSR #7628, I also added alpha for text background.
The list of changes (some are fixes): - Properly horizontally centered tags in all fields (bug?). - File area does not have trailing space and has leading "File " at start instead (probably a bug). - Small separation between to time related fields, space saving. - Removed colons, for consistency and space saving again. - Frame field is zero aligned for higher visual stability. - Marker name shows a rarer name, "<none>" (using <> is typical for cases in which there is nothing: <none>, <empty>, <blank>, etc). - Top area for misc info that can be really long (file, note and render date). - Bottom area for more constantly changing but short ones (marker, SMPTE, frame, camera and scene). - Only render date moves a line (when note field is not used), and frame one moves if no SMPTE (still in same line, so no big jump), for extra visual stability (marker is fixed, assuming most people would show frame and or SMPTE). - ISO 8601 date format for render date, localization independant. Comparision images: http://www.infernal-iceberg.com/blender/stamp-original.png http://www.infernal-iceberg.com/blender/stamp-cleanup.png
Diffstat (limited to 'source/blender/src/buttons_scene.c')
-rw-r--r--source/blender/src/buttons_scene.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c
index d61268b2064..7232698a7a8 100644
--- a/source/blender/src/buttons_scene.c
+++ b/source/blender/src/buttons_scene.c
@@ -1570,12 +1570,14 @@ static void render_panel_stamp(void)
/* draw fg/bg next to the scene */
yofs -= 25;
- uiDefBut(block, LABEL, 0, "Text Color", xofs+110, yofs, 80, 19, 0, 0, 0, 0, 0, "");
- uiDefBut(block, LABEL, 0, "Background", xofs+205, yofs, 80, 19, 0, 0, 0, 0, 0, "");
+ uiDefBut(block, LABEL, B_NOP, "Text Color", xofs+110, yofs, 80, 19, 0, 0, 0, 0, 0, "");
+ uiDefBut(block, LABEL, B_NOP, "Background", xofs+205, yofs, 80, 19, 0, 0, 0, 0, 0, "");
yofs -= 20;
uiDefButF(block, COL, B_NOP, "", xofs+110, yofs, 90, 19, G.scene->r.fg_stamp, 0, 0, 0, 0, "Foreground text color");
uiDefButF(block, COL, B_NOP, "", xofs+210, yofs, 90, 19, G.scene->r.bg_stamp, 0, 0, 0, 0, "Background color");
- yofs += 75;
+ yofs -= 30;
+ uiDefButF(block, NUMSLI, B_NOP, "A", xofs+110, yofs, 180, 19, &G.scene->r.bg_stamp[3], 0, 1.0, 0, 0, "Alpha for text background");
+ yofs += 105;
} else {
yofs += 30;
}