diff --git a/resources/forms/mainWindow.ui b/resources/forms/mainWindow.ui index 24c04b61..8857828c 100644 --- a/resources/forms/mainWindow.ui +++ b/resources/forms/mainWindow.ui @@ -370,7 +370,7 @@ Eraser - Smalle Eraser + Small Eraser @@ -407,51 +407,78 @@ + + true + :/images/toolbar/color.png:/images/toolbar/color.png - Color + Color0 - Color + Color 1 + + true + :/images/toolbar/color.png:/images/toolbar/color.png - Color + Color1 + + + Color 2 + + true + :/images/toolbar/color.png:/images/toolbar/color.png - Color + Color2 + + + Color 3 + + true + :/images/toolbar/color.png:/images/toolbar/color.png - Color + Color3 + + + Color 4 + + true + :/images/toolbar/color.png:/images/toolbar/color.png - Color + Color4 + + + Color 5 diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index d1236391..b3b913a2 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -319,11 +319,14 @@ void UBBoardController::setupToolbar() connect(settings->appToolBarDisplayText, SIGNAL(changed(QVariant)), colorChoice, SLOT(displayText(QVariant))); connect(colorChoice, SIGNAL(activated(int)), this, SLOT(setColorIndex(int))); connect(UBDrawingController::drawingController(), SIGNAL(colorIndexChanged(int)), colorChoice, SLOT(setCurrentIndex(int))); + connect(UBDrawingController::drawingController(), SIGNAL(colorIndexChanged(int)), UBDrawingController::drawingController(), SIGNAL(colorPaletteChanged())); connect(UBDrawingController::drawingController(), SIGNAL(colorPaletteChanged()), colorChoice, SLOT(colorPaletteChanged())); connect(UBDrawingController::drawingController(), SIGNAL(colorPaletteChanged()), this, SLOT(colorPaletteChanged())); colorChoice->displayText(QVariant(settings->appToolBarDisplayText->get().toBool())); colorChoice->colorPaletteChanged(); + colorChoice->setCurrentIndex(settings->penColorIndex()); + colorActions.at(settings->penColorIndex())->setChecked(true); // Setup line width choice widget QList lineWidthActions;