From e0129c5f1532a27a4fed2d603836741b3598859a Mon Sep 17 00:00:00 2001 From: JucaBlues Date: Tue, 11 Aug 2009 04:22:47 +0000 Subject: [PATCH] adding color management icons to fill&stroke dialog --- share/icons/Makefile.am | 3 +++ share/icons/color-management-icon.png | Bin 0 -> 2720 bytes share/icons/out-of-gamut-icon.png | Bin 0 -> 1016 bytes share/icons/out-of-gamut-icon.svg | 22 ++++++++++++++++++++++ src/widgets/sp-color-notebook.cpp | 18 +++++++++++++++++- 5 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 share/icons/color-management-icon.png create mode 100644 share/icons/out-of-gamut-icon.png create mode 100644 share/icons/out-of-gamut-icon.svg diff --git a/share/icons/Makefile.am b/share/icons/Makefile.am index e39174833..4356365b8 100644 --- a/share/icons/Makefile.am +++ b/share/icons/Makefile.am @@ -1,6 +1,9 @@ iconsdir = $(datadir)/inkscape/icons pixmaps = \ + out-of-gamut-icon.png \ + out-of-gamut-icon.svg \ + color-management-icon.png \ remove-color.png \ remove-color.svg \ ticotico.jpg \ diff --git a/share/icons/color-management-icon.png b/share/icons/color-management-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..469ccd72a4dd7817d8c1720e4bc4f1646bc2143b GIT binary patch literal 2720 zcmV;R3Sae!P)V=-Lvm$dbY)~9cWHEJAW3d(b7Ns}WeR9?bZ|N^FL!r$E@^IS zb7Ns}WiD@WXD^l<0N?-s39(5;K~!jg#hH0I6;}odS%5MQGPaE4R1`u0+i^x}b*3&e?dTs(AfjXxh+r+XY7yx~XOgfa zA&Gf;WP8b5PyaaQg)A=%ki_52ncrK^z3=-u-?QEGwC3gp!6;EzS5HPpI%czZv})g5 z=p%g*4u^U6+2>fW;4U&}-o%21cTrkehS%$zN_}I77R>>_-%nv-F_o2vN%%ZQ(XbN;b1` zV=+BFJyWfBSPXL@7z{Fh{zBS%-S{p9z!3(nRI$75gw}@eRrr{dHH*KzdVuWgxl^sX zKZZF_QE`aI#zx{crhy{?Z~~_Os@_B|zH%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f0BadFY0rGBzw+yEf|!Qa098BE4RoYtFZ@A@aYu5;ggODQfc zV&1&lCR1zFxGDgE%F6dBD%yk)f`WpT6c%nID{Izd=^Hby8UWzz+5eH0ltfBO@?>bb as`x*z(Uj#N*8?a30000MB1pe- zG4&rHDzm0KI=%hyaJ&S}8#s!bsen{LRzbdk9D-Gy;6wdyRo|^#26F_=1Eo6y02F|# zv0)(3A)Eu*00}c3zKuhbol{*3qz+VpLR$dOfbcG-N?+c=t`oZ0m9hZLgI!SC*>mk2 z$(eW*<|Dt2h+vHAH1OjYl)r;{iubGEpgXD2Dnmn?kZnA8_;)s?IaR<`XYp|Wv%$k`Tsy>L4sKE67UJ=N`z;Z zK3hWHomE*^dmFKxHPuboz-a})s&bY~^YmyFwbf{}&dhq)3$dlR?kCCs<6vuapRfsH z=U+En0>f(q`+;XTRpU_@2Uq~R(Qr|6%%zyWwdb=&BFc$lN878h-Gut8Y z9|bSCSWCJA8vTwjcn(sswfe4W>}TY{ZV5uy6}#W&KqF|O_Z|fWK&|E>GzbRhGsblJ z8durAK`^d8sXo^NpmqZMc2qEw*>t8M9|eD~br%YtPW0nI!*O%cQ8Y=DDP2ubB4X+R z_N_8EzV5*jC?)b;%;mnE&ijVuX>2L;ys1wD$oH{I z?hm$}#L=RH$nW890z`g~*ApP}d%=+ek=rY#R5<1Hk}sLq + + + + + + + + diff --git a/src/widgets/sp-color-notebook.cpp b/src/widgets/sp-color-notebook.cpp index 779895de4..58974131e 100644 --- a/src/widgets/sp-color-notebook.cpp +++ b/src/widgets/sp-color-notebook.cpp @@ -324,9 +324,25 @@ void ColorNotebook::init() row++; - /* Create RGBA entry and color preview */ GtkWidget *rgbabox = gtk_hbox_new (FALSE, 0); + /* Create color management icons */ + GtkWidget *box_colormanaged = gtk_event_box_new (); + GtkWidget *colormanaged = gtk_image_new_from_icon_name ("color-management-icon", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_container_add (GTK_CONTAINER (box_colormanaged), colormanaged); + GtkTooltips *tooltips_colormanaged = gtk_tooltips_new (); + gtk_tooltips_set_tip (tooltips_colormanaged, box_colormanaged, _("Color Managed"), ""); + //gtk_widget_hide (GTK_WIDGET (box_colormanaged)); + gtk_box_pack_start(GTK_BOX(rgbabox), box_colormanaged, TRUE, FALSE, 2); + + GtkWidget *box_outofgamut = gtk_event_box_new (); + GtkWidget *outofgamut = gtk_image_new_from_icon_name ("out-of-gamut-icon", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_container_add (GTK_CONTAINER (box_outofgamut), outofgamut); + GtkTooltips *tooltips_outofgamut = gtk_tooltips_new (); + gtk_tooltips_set_tip (tooltips_outofgamut, box_outofgamut, _("Out of gamut!"), ""); + //gtk_widget_hide (GTK_WIDGET (box_outofgamut)); + gtk_box_pack_start(GTK_BOX(rgbabox), box_outofgamut, TRUE, FALSE, 2); + /* Create RGBA entry and color preview */ _rgbal = gtk_label_new_with_mnemonic (_("RGBA_:")); gtk_misc_set_alignment (GTK_MISC (_rgbal), 1.0, 0.5); gtk_box_pack_start(GTK_BOX(rgbabox), _rgbal, TRUE, TRUE, 2); -- 2.30.2