Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

beautify: add the pink purple gradient effect.

  • Loading branch information...
commit 5244640a724746c83393c139e68cfd1e2d222c43 1 parent 6e94354
@hejiann authored
View
1  README
@@ -58,6 +58,7 @@ skin whitening: add the little flesh effect.
skin whitening: add the moderate flesh effect.
skin shitening: add the high flesh effect.
beautify: add the classic LOMO effect.
+beautify: add the pink purple gradient effect.
2012-07-30:
beautify: fix missing effect.
View
13 beautify-effect.c
@@ -1793,6 +1793,19 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
break;
}
+ case BEAUTIFY_EFFECT_PINK_PURPLE_GRADIENG:
+ {
+ gint32 layer;
+ GdkPixbuf *pixbuf;
+
+ pixbuf = gdk_pixbuf_new_from_inline (-1, texture_pink_purple_gradient, FALSE, NULL);
+ layer = gimp_layer_new_from_pixbuf (image_ID, "texture", pixbuf, 100, GIMP_SCREEN_MODE, 0, 0);
+ gimp_image_add_layer (image_ID, layer, -1);
+ gimp_layer_scale (layer, width, height, FALSE);
+ gimp_image_merge_down (image_ID, layer, GIMP_CLIP_TO_BOTTOM_LAYER);
+
+ break;
+ }
case BEAUTIFY_EFFECT_PINK_BLUE_GRADIENT:
{
gint32 layer;
View
2  beautify-effect.h
@@ -102,7 +102,7 @@ typedef enum
BEAUTIFY_EFFECT_BLUE_YELLOW_GRADIENT, // TODO
BEAUTIFY_EFFECT_RAINBOW_GRADIENT,
BEAUTIFY_EFFECT_FOUR_COLOR_GRADIENT, // TODO
- BEAUTIFY_EFFECT_PINK_PURPLE_GRADIENG, // TODO
+ BEAUTIFY_EFFECT_PINK_PURPLE_GRADIENG,
BEAUTIFY_EFFECT_PINK_BLUE_GRADIENT,
} BeautifyEffectType;
View
2  beautify-textures.list
@@ -38,5 +38,7 @@ texture_sunset_gradient
./textures/effects/sunset-gradient.jpg
texture_rainbow_gradient
./textures/effects/rainbow-gradient.png
+texture_pink_purple_gradient
+ ./textures/effects/pink-purple-gradient.jpg
texture_pink_blue_gradient
./textures/effects/pink-blue-gradient.png
View
34 beautify.c
@@ -113,6 +113,7 @@ static const BeautifyEffectType gradient_effects[] =
BEAUTIFY_EFFECT_BEAM_GRADIENT,
BEAUTIFY_EFFECT_SUNSET_GRADIENT,
BEAUTIFY_EFFECT_RAINBOW_GRADIENT,
+ BEAUTIFY_EFFECT_PINK_PURPLE_GRADIENG,
BEAUTIFY_EFFECT_PINK_BLUE_GRADIENT,
};
@@ -930,13 +931,13 @@ effect_icon_new (BeautifyEffectType effect)
title = "Sharpen";
break;
case BEAUTIFY_EFFECT_STRONG_CONTRAST:
- title = "Strong Contrast";
+ title = "Strong\nContrast";
break;
case BEAUTIFY_EFFECT_SMART_COLOR:
title = "Smart Color";
break;
case BEAUTIFY_EFFECT_BLACK_AND_WHITE:
- title = "Black & White";
+ title = "Black\nand White";
break;
case BEAUTIFY_EFFECT_INVERT:
title = "Invert";
@@ -960,16 +961,16 @@ effect_icon_new (BeautifyEffectType effect)
title = "Classic HDR";
break;
case BEAUTIFY_EFFECT_YELLOWING_DARK_CORNERS:
- title = "Yellow Dark Corner";
+ title = "Yellow Dark\nCorner";
break;
case BEAUTIFY_EFFECT_IMPRESSION:
title = "Impression";
break;
case BEAUTIFY_EFFECT_DEEP_BLUE_TEAR_RAIN:
- title = "Deep Blue";
+ title = "Deep Blue\nTear Rain";
break;
case BEAUTIFY_EFFECT_PURPLE_SENSATION:
- title = "Purple Sensation";
+ title = "Purple\nSensation";
break;
case BEAUTIFY_EFFECT_BRONZE:
title = "Bronze";
@@ -993,7 +994,7 @@ effect_icon_new (BeautifyEffectType effect)
title = "Pink Lady";
break;
case BEAUTIFY_EFFECT_ABAO_COLOR:
- title = "A Bao";
+ title = "ABao Color";
break;
case BEAUTIFY_EFFECT_ICE_SPIRIT:
title = "Ice Spirit";
@@ -1002,7 +1003,7 @@ effect_icon_new (BeautifyEffectType effect)
title = "Japanese";
break;
case BEAUTIFY_EFFECT_NEW_JAPANESE_STYLE:
- title = "New Japanese";
+ title = "New\nJapanese";
break;
case BEAUTIFY_EFFECT_MILK:
title = "Milk";
@@ -1023,7 +1024,7 @@ effect_icon_new (BeautifyEffectType effect)
title = "Cold Green";
break;
case BEAUTIFY_EFFECT_PURPLE_FANTASY:
- title = "Purple Fantasy";
+ title = "Purple\nFantasy";
break;
case BEAUTIFY_EFFECT_COLD_PURPLE:
title = "Cold Purple";
@@ -1032,7 +1033,7 @@ effect_icon_new (BeautifyEffectType effect)
title = "Bright Red";
break;
case BEAUTIFY_EFFECT_CHRISTMAS_EVE:
- title = "Eve";
+ title = "Christmas Eve";
break;
case BEAUTIFY_EFFECT_NIGHT_VIEW:
title = "Night View";
@@ -1059,16 +1060,19 @@ effect_icon_new (BeautifyEffectType effect)
title = "Color Pencil";
break;
case BEAUTIFY_EFFECT_BEAM_GRADIENT:
- title = "Beam Gradient";
+ title = "Beam\nGradient";
break;
case BEAUTIFY_EFFECT_SUNSET_GRADIENT:
- title = "Sunset Gradient";
+ title = "Sunset\nGradient";
break;
case BEAUTIFY_EFFECT_RAINBOW_GRADIENT:
- title = "Rainbow Gradient";
+ title = "Rainbow\nGradient";
+ break;
+ case BEAUTIFY_EFFECT_PINK_PURPLE_GRADIENG:
+ title = "Pink Purple\nGradient";
break;
case BEAUTIFY_EFFECT_PINK_BLUE_GRADIENT:
- title = "Pink Blue";
+ title = "Pink Blue\nGradient";
break;
}
@@ -1086,6 +1090,10 @@ effect_icon_new (BeautifyEffectType effect)
gtk_widget_show (event_box);
GtkWidget *label = gtk_label_new (title);
+ /* gtk_label_set_line_wrap will let textalign to left instead of center :(
+ gtk_widget_set_size_request (label, THUMBNAIL_SIZE, -1);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);*/
+ gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
gtk_widget_show (label);
View
2  skin-whitening.c
@@ -412,8 +412,8 @@ effect_icon_new (WhiteningEffectType effect)
/* label */
GtkWidget *label = gtk_label_new (title);
- gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_widget_set_size_request (label, 80, -1);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
gtk_widget_show (label);
View
BIN  textures/effects/pink-purple-gradient.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.