diff --git a/YACReader/goto_flow_gl.cpp b/YACReader/goto_flow_gl.cpp index 2ea9c081..0a9ace11 100644 --- a/YACReader/goto_flow_gl.cpp +++ b/YACReader/goto_flow_gl.cpp @@ -82,16 +82,22 @@ GoToFlowGL::GoToFlowGL(QWidget* parent, FlowType flowType) edit->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); edit->setAutoFillBackground(false); + QString centerButtonCSS = "QPushButton {background-image: url(:/images/imgCenterSlide.png); width: 100%; height:100%; background-repeat: none; border: none;} " + "QPushButton:focus { border: none; outline: none;}" + "QPushButton:pressed {background-image: url(:/images/imgCenterSlidePressed.png); width: 100%; height:100%; background-repeat: none; border: none;} "; centerButton = new QPushButton(bottomToolBar); //centerButton->setIcon(QIcon(":/images/center.png")); - centerButton->setStyleSheet("background-image: url(:/images/imgCenterSlide.png); width: 100%; height:100%; background-repeat: none; border: none;"); + centerButton->setStyleSheet(centerButtonCSS); centerButton->setFixedSize(26,50); connect(centerButton,SIGNAL(clicked()),this,SLOT(centerSlide())); bottom->addWidget(centerButton); + QString goToButtonCSS = "QPushButton {background-image: url(:/images/imgGoToSlide.png); width: 100%; height:100%; background-repeat: none; border: none;} " + "QPushButton:focus { border: none; outline: none;}" + "QPushButton:pressed {background-image: url(:/images/imgGoToSlidePressed.png); width: 100%; height:100%; background-repeat: none; border: none;} "; goToButton = new QPushButton(bottomToolBar); //goToButton->setIcon(QIcon(":/images/goto.png")); - goToButton->setStyleSheet("background-image: url(:/images/imgGoToSlide.png); width: 100%; height:100%; background-repeat: none; border: none;"); + goToButton->setStyleSheet(goToButtonCSS); goToButton->setFixedSize(32,50); connect(goToButton,SIGNAL(clicked()),this,SLOT(goTo())); bottom->addWidget(goToButton); diff --git a/YACReader/images.qrc b/YACReader/images.qrc index 698d09ca..88004c76 100644 --- a/YACReader/images.qrc +++ b/YACReader/images.qrc @@ -45,6 +45,8 @@ ../images/imgEdit.png ../images/imgCenterSlide.png ../images/imgGoToSlide.png + ../images/imgCenterSlidePressed.png + ../images/imgGoToSlidePressed.png ../images/helpImages/open.png ../images/helpImages/openFolder.png diff --git a/images/imgCenterSlidePressed.png b/images/imgCenterSlidePressed.png new file mode 100644 index 00000000..53ce692b Binary files /dev/null and b/images/imgCenterSlidePressed.png differ diff --git a/images/imgGoToSlidePressed.png b/images/imgGoToSlidePressed.png new file mode 100644 index 00000000..f7f5370c Binary files /dev/null and b/images/imgGoToSlidePressed.png differ