mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 20:30:32 +02:00
Update IntelliPhotoGui.cpp
This commit is contained in:
@@ -660,11 +660,11 @@ void IntelliPhotoGui::createGui(){
|
|||||||
preview = preview.fromImage(tmp);
|
preview = preview.fromImage(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ActiveLayerImageButton = new QPushButton();
|
ActiveLayerImageButton = new QPushButton();
|
||||||
ActiveLayerImageButton->setFixedSize(Buttonsize);
|
ActiveLayerImageButton->setFixedSize(Buttonsize);
|
||||||
ActiveLayerImageButton->setIcon(preview);
|
ActiveLayerImageButton->setIcon(preview);
|
||||||
ActiveLayerImageButton->setIconSize(Buttonsize);
|
ActiveLayerImageButton->setIconSize(Buttonsize);
|
||||||
|
ActiveLayerImageButton->setEnabled(false);
|
||||||
|
|
||||||
// set gui elements
|
// set gui elements
|
||||||
|
|
||||||
@@ -690,14 +690,24 @@ void IntelliPhotoGui::createGui(){
|
|||||||
void IntelliPhotoGui::setIntelliStyle(){
|
void IntelliPhotoGui::setIntelliStyle(){
|
||||||
// Set the title
|
// Set the title
|
||||||
setWindowTitle("IntelliPhoto Prototype");
|
setWindowTitle("IntelliPhoto Prototype");
|
||||||
QStyle* Style = new QProxyStyle();
|
QPalette Palette;
|
||||||
|
Palette.setBrush(QPalette::HighlightedText, QColor(200, 10, 10));
|
||||||
|
Palette.setBrush(QPalette::ButtonText, QColor(255, 255, 255));
|
||||||
// Set style sheet
|
// Set style sheet
|
||||||
this->setStyleSheet("background-color:rgb(64,64,64)");
|
this->setStyleSheet("background-color:rgb(64,64,64)");
|
||||||
this->centralGuiWidget->setStyleSheet("color:rgb(255,255,255)");
|
this->centralGuiWidget->setStyleSheet("color:rgb(255,255,255)");
|
||||||
this->menuBar()->setStyleSheet("color:rgb(255,255,255)");
|
this->menuBar()->setPalette(Palette);
|
||||||
this->fileMenu->setStyle(Style);
|
this->fileMenu->setPalette(Palette);
|
||||||
this->optionMenu->setStyle(Style);
|
this->saveAsMenu->setPalette(Palette);
|
||||||
this->helpMenu->setStyle(Style);
|
this->optionMenu->setPalette(Palette);
|
||||||
|
this->helpMenu->setPalette(Palette);
|
||||||
|
this->renderMenu->setPalette(Palette);
|
||||||
|
this->toolMenu->setPalette(Palette);
|
||||||
|
this->layerMenu->setPalette(Palette);
|
||||||
|
this->colorMenu->setPalette(Palette);
|
||||||
|
this->toolCreationMenu->setPalette(Palette);
|
||||||
|
this->toolSettingsMenu->setPalette(Palette);
|
||||||
|
|
||||||
QString string = QString("background-color: %1").arg(paintingArea->colorPicker.getFirstColor().name());
|
QString string = QString("background-color: %1").arg(paintingArea->colorPicker.getFirstColor().name());
|
||||||
FirstColorButton->setStyleSheet(string);
|
FirstColorButton->setStyleSheet(string);
|
||||||
string = QString("background-color: %1").arg(paintingArea->colorPicker.getSecondColor().name());
|
string = QString("background-color: %1").arg(paintingArea->colorPicker.getSecondColor().name());
|
||||||
|
|||||||
Reference in New Issue
Block a user