# HG changeset patch # User Santeri Piippo # Date 1398196322 -10800 # Node ID 2a8c981d79fa44a0da844ee993fbc4c29ae3d10d # Parent 3faeb1174e40af998399e495ecbceeb79f90fc6c# Parent b6601bfbe732bd1d56565622c38258631ed7e422 Merge ../ldforge into gl diff -r 3faeb1174e40 -r 2a8c981d79fa src/actionsEdit.cc --- a/src/actionsEdit.cc Tue Apr 22 22:28:19 2014 +0300 +++ b/src/actionsEdit.cc Tue Apr 22 22:52:02 2014 +0300 @@ -572,7 +572,7 @@ // ============================================================================= // -DEFINE_ACTION (Uncolorize, 0) +DEFINE_ACTION (Uncolor, 0) { int num = 0; diff -r 3faeb1174e40 -r 2a8c981d79fa src/mainWindow.cc --- a/src/mainWindow.cc Tue Apr 22 22:28:19 2014 +0300 +++ b/src/mainWindow.cc Tue Apr 22 22:52:02 2014 +0300 @@ -52,7 +52,7 @@ static bool g_isSelectionLocked = false; cfg (Bool, lv_colorize, true); -cfg (String, gui_colortoolbar, "16:24:|:4:25:14:27:2:3:11:1:22:|:0:72:71:15"); +cfg (String, gui_colortoolbar, "4:25:14:27:2:3:11:1:22:|:0:72:71:15"); cfg (Bool, gui_implicitfiles, false); extern_cfg (List, io_recentfiles); extern_cfg (Bool, gl_axes); @@ -216,6 +216,8 @@ { m_colorButtons.clear(); ui->colorToolbar->clear(); + ui->colorToolbar->addAction (ui->actionUncolor); + ui->colorToolbar->addSeparator(); for (LDQuickColor& entry : m_quickColors) { diff -r 3faeb1174e40 -r 2a8c981d79fa src/mainWindow.h --- a/src/mainWindow.h Tue Apr 22 22:28:19 2014 +0300 +++ b/src/mainWindow.h Tue Apr 22 22:52:02 2014 +0300 @@ -242,7 +242,7 @@ void slot_actionSetDrawDepth(); void slot_actionSetColor(); void slot_actionAutocolor(); - void slot_actionUncolorize(); + void slot_actionUncolor(); void slot_actionInline(); void slot_actionInlineDeep(); void slot_actionInvert(); diff -r 3faeb1174e40 -r 2a8c981d79fa ui/ldforge.ui --- a/ui/ldforge.ui Tue Apr 22 22:28:19 2014 +0300 +++ b/ui/ldforge.ui Tue Apr 22 22:52:02 2014 +0300 @@ -160,7 +160,7 @@ - + @@ -368,7 +368,6 @@ - @@ -855,13 +854,16 @@ Set the color of the given object to the first found unused color. - + :/icons/uncolorize.png:/icons/uncolorize.png - Uncolorize + Uncolor + + + Uncolor Reduce colors of everything selected to main and edge colors