GithubHelp home page GithubHelp logo

dextermagnific / qsvgstyle Goto Github PK

View Code? Open in Web Editor NEW
94.0 94.0 10.0 3.97 MB

QSvgStyle is a themeable SVG style for Qt5 applications

License: GNU General Public License v2.0

C++ 99.20% QMake 0.60% C 0.20%
qt qt5 style theme

qsvgstyle's People

Contributors

dextermagnific avatar vistaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

qsvgstyle's Issues

unable to install

OS: Manjaro Linux (unstable branch, practically Arch)

It seems that the "make install" does not find some files, especially just the plugin with the style

LANG=C make --dry-run install test -d styleconfig/ || mkdir -p styleconfig/ cd styleconfig/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/styleconfig/styleconfig.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/styleconfig' make[1]: Nothing to be done for 'install'. make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/styleconfig' test -d style/ || mkdir -p style/ cd style/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/style/style.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/style' make[1]: Nothing to be done for 'install'. make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/style' test -d thirdparty/svgcleaner/ || mkdir -p thirdparty/svgcleaner/ cd thirdparty/svgcleaner/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/thirdparty/svgcleaner/svgcleaner.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/thirdparty/svgcleaner' make[1]: Nothing to be done for 'install'. make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/thirdparty/svgcleaner' test -d thirdparty/quazip/ || mkdir -p thirdparty/quazip/ cd thirdparty/quazip/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/thirdparty/quazip/quazip.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/thirdparty/quazip' make[1]: Nothing to be done for 'install'. make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/thirdparty/quazip' test -d themebuilder/ || mkdir -p themebuilder/ cd themebuilder/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/themebuilder/themebuilder.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/themebuilder' test -d /usr/bin || mkdir -p /usr/bin /usr/bin/qmake -install qinstall -exe bin/qsvgthemebuilder /usr/bin/qsvgthemebuilder test -d /usr/share/applications || mkdir -p /usr/share/applications /usr/bin/qmake -install qinstall /home/guido/tmp/QSvgStyle-master/themebuilder/desktop/qsvgthemebuilder.desktop /usr/share/applications/qsvgthemebuilder.desktop make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/themebuilder' test -d thememanager/ || mkdir -p thememanager/ cd thememanager/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/thememanager/thememanager.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/thememanager' test -d /usr/bin || mkdir -p /usr/bin /usr/bin/qmake -install qinstall -exe bin/qsvgthememanager /usr/bin/qsvgthememanager test -d /usr/share/applications || mkdir -p /usr/share/applications /usr/bin/qmake -install qinstall /home/guido/tmp/QSvgStyle-master/thememanager/desktop/qsvgthememanager.desktop /usr/share/applications/qsvgthememanager.desktop make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/thememanager' test -d themes/ || mkdir -p themes/ cd themes/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/guido/tmp/QSvgStyle-master/themes/themes.pro ) && make -f Makefile install make[1]: Entering directory '/home/guido/tmp/QSvgStyle-master/themes' make[1]: Nothing to be done for 'install'. make[1]: Leaving directory '/home/guido/tmp/QSvgStyle-master/themes'

cant build for qt4

Hi,
im on archlinux kde 5.8, build for qt5 works but when i try to build for qt4:
qmake-qt4
make
the build fails:

cd style/ && make -f Makefile 
make[1]: se entra en el directorio '/home/samuel/QSvgStyle-master/style'
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SVG_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../styleconfig -I. -o QSvgThemableStyle.o QSvgThemableStyle.cpp
In file included from QSvgThemableStyle.cpp:20:0:
QSvgThemableStyle.h: En la función miembro ‘QBrush QSvgThemableStyle::cs2b(value_t<int>, const QBrush&) const’:
QSvgThemableStyle.h:402:33: error: ‘QRgba64’ no se declaró en este ámbito
       return c.present ? QBrush(QRgba64::fromArgb32(c)) : b;
                                 ^~~~~~~
make[1]: *** [Makefile:242: QSvgThemableStyle.o] Error 1
make[1]: se sale del directorio '/home/samuel/QSvgStyle-master/style'
make: *** [Makefile:78: sub-style-make_default-ordered] Error 2

maybe i miss to install a dev lib?

thanks

How does the coloring works?

So i put all the palette lines under general and let all elements inherit general but the window is still uncolored.

are the colors are in R,G,B,A or in HSL? or does it only support color for elements?

Screenshot at 2020-01-26 13-13-29

How to control corner roundness?

Hello,
I was wondering how I can control the amount of corner rounding in my theme. Like e.g. having the corners be fully rounded instead of just 4px. Is there something like frame.width that only affects the corners and not the edges?

[Error]Could not load QSvgStyle style, preview will not be available

System: Manjaro-x86-64
QT: 5.10.1
Commits: d4d224b
Command:

qmake-qt5
make
sudo make install
qsvgthemebuilder

Full Output:

Current style: Breeze::Style
[QSvgThemeBuilder] Could not load QSvgStyle style, preview will not be available !
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty

Confusing instructions

I'm new to Linux, so I don't fully understand everything. However, I do understand that qmake and make aren't full commands, and will just give you a list of arguments. Nowhere in the instructions does it further elaborate on those commands. Searching for instructions elsewhere led me to a slightly clearer version of these instructions, possibly and old version. Stuck there too. Can someone else help me install this? Thanks!
(Ubuntu 19.10 with KDE Desktop)

Fails now to build

It does not compile anymore on debian sid maybe a g++ 10 issue?

$ make
cd styleconfig/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/ssf/QSvgStyle/styleconfig/styleconfig.pro ) && make -f Makefile 
make[1]: Verzeichnis „/home/ssf/QSvgStyle/styleconfig“ wird betreten
g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -Wextra -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I.. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o groups.o groups.cpp
g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -Wextra -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I.. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o ThemeConfig.o ThemeConfig.cpp
g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -Wextra -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I.. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o StyleConfig.o StyleConfig.cpp
g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -Wextra -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I.. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o QSvgCachedSettings.o QSvgCachedSettings.cpp
rm -f lib/libQSvgStyleConfig.a
ar cqs lib/libQSvgStyleConfig.a groups.o ThemeConfig.o StyleConfig.o QSvgCachedSettings.o
make[1]: Verzeichnis „/home/ssf/QSvgStyle/styleconfig“ wird verlassen
cd style/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/ssf/QSvgStyle/style/style.pro ) && make -f Makefile 
make[1]: Verzeichnis „/home/ssf/QSvgStyle/style“ wird betreten
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../styleconfig -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o QSvgThemableStyle.o QSvgThemableStyle.cpp
QSvgThemableStyle.cpp: In member function ‘virtual QSize QSvgThemableStyle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const QSize&, const QWidget*) const’:
QSvgThemableStyle.cpp:3768:64: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 3768 |           QSize barSz = sizeFromContents(fm,fs,is,ls, QString::null);
      |                                                                ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp:3768:64: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 3768 |           QSize barSz = sizeFromContents(fm,fs,is,ls, QString::null);
      |                                                                ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp:3777:72: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 3777 |                                                             : QString::null);
      |                                                                        ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp:3777:72: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 3777 |                                                             : QString::null);
      |                                                                        ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp:3786:43: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 3786 |                                : QString::null);
      |                                           ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp:3786:43: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 3786 |                                : QString::null);
      |                                           ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp: In member function ‘virtual QRect QSvgThemableStyle::subElementRect(QStyle::SubElement, const QStyleOption*, const QWidget*) const’:
QSvgThemableStyle.cpp:4104:62: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 4104 |         QSize barSz = sizeFromContents(fm,fs,is,ls, QString::null);
      |                                                              ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp:4104:62: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
 4104 |         QSize barSz = sizeFromContents(fm,fs,is,ls, QString::null);
      |                                                              ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcommonstyle.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCommonStyle:1,
                 from QSvgThemableStyle.h:23,
                 from QSvgThemableStyle.cpp:20:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:954:23: note: declared here
  954 |     static const Null null;
      |                       ^~~~
QSvgThemableStyle.cpp: In member function ‘void QSvgThemableStyle::renderFrame(QPainter*, const QBrush&, const QRect&, const frame_spec_t&, const QString&, Qt::LayoutDirection, QSvgThemableStyle::Orientation) const’:
QSvgThemableStyle.cpp:5198:16: error: aggregate ‘QPainterPath lightPath’ has incomplete type and cannot be defined
 5198 |   QPainterPath lightPath; // top and left 3D effect
      |                ^~~~~~~~~
QSvgThemableStyle.cpp:5199:16: error: aggregate ‘QPainterPath darkPath’ has incomplete type and cannot be defined
 5199 |   QPainterPath darkPath; // bottom and right 3D effect
      |                ^~~~~~~~
QSvgThemableStyle.cpp:5290:43: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations]
 5290 |     p->setMatrix(QMatrix(0,1,1,0,0,0),true);
      |                                           ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QPainter:1,
                 from QSvgThemableStyle.cpp:24:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:241:10: note: declared here
  241 |     void setMatrix(const QMatrix &matrix, bool combine = false);
      |          ^~~~~~~~~
QSvgThemableStyle.cpp: In member function ‘void QSvgThemableStyle::renderInterior(QPainter*, const QBrush&, const QRect&, const frame_spec_t&, const interior_spec_t&, const QString&, Qt::LayoutDirection, QSvgThemableStyle::Orientation) const’:
QSvgThemableStyle.cpp:5471:43: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations]
 5471 |     p->setMatrix(QMatrix(0,1,1,0,0,0),true);
      |                                           ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QPainter:1,
                 from QSvgThemableStyle.cpp:24:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:241:10: note: declared here
  241 |     void setMatrix(const QMatrix &matrix, bool combine = false);
      |          ^~~~~~~~~
QSvgThemableStyle.cpp: In member function ‘void QSvgThemableStyle::colorizeIndicator(QPainter*, const QRect&, const frame_spec_t&, const interior_spec_t&, const indicator_spec_t&, const QBrush&, Qt::LayoutDirection, Qt::Alignment) const’:
QSvgThemableStyle.cpp:5590:16: error: aggregate ‘QPainterPath lightPath’ has incomplete type and cannot be defined
 5590 |   QPainterPath lightPath, darkPath;
      |                ^~~~~~~~~
QSvgThemableStyle.cpp:5590:27: error: aggregate ‘QPainterPath darkPath’ has incomplete type and cannot be defined
 5590 |   QPainterPath lightPath, darkPath;
      |                           ^~~~~~~~
make[1]: *** [Makefile:423: QSvgThemableStyle.o] Fehler 1
make[1]: Verzeichnis „/home/ssf/QSvgStyle/style“ wird verlassen
make: *** [Makefile:96: sub-style-make_first-ordered] Fehler 2
$ 

unable to compile

cd styleconfig/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/keith/QSvgStyle/styleconfig/styleconfig.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/keith/QSvgStyle/styleconfig'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/keith/QSvgStyle/styleconfig'
cd style/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/keith/QSvgStyle/style/style.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/keith/QSvgStyle/style'
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../styleconfig -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o QSvgThemableStyle.o QSvgThemableStyle.cpp
QSvgThemableStyle.cpp: In member function ‘virtual void QSvgThemableStyle::drawComplexControl(QStyle::ComplexControl, const QStyleOptionComplex*, QPainter*, const QWidget*) const’:
QSvgThemableStyle.cpp:2951:39: error: ‘PM_TitleBarButtonSize’ was not declared in this scope
const int btnsz = pixelMetric(PM_TitleBarButtonSize,opt,widget);
^~~~~~~~~~~~~~~~~~~~~
QSvgThemableStyle.cpp:2952:40: error: ‘PM_TitleBarButtonIconSize’ was not declared in this scope
const int iconsz = pixelMetric(PM_TitleBarButtonIconSize,opt,widget);
^~~~~~~~~~~~~~~~~~~~~~~~~
QSvgThemableStyle.cpp: In member function ‘virtual int QSvgThemableStyle::pixelMetric(QStyle::PixelMetric, const QStyleOption*, const QWidget*) const’:
QSvgThemableStyle.cpp:3175:10: error: ‘PM_TitleBarButtonIconSize’ was not declared in this scope
case PM_TitleBarButtonIconSize : return 32;
^~~~~~~~~~~~~~~~~~~~~~~~~
QSvgThemableStyle.cpp:3176:10: error: ‘PM_TitleBarButtonSize’ was not declared in this scope
case PM_TitleBarButtonSize :
^~~~~~~~~~~~~~~~~~~~~
QSvgThemableStyle.cpp: In member function ‘virtual QRect QSvgThemableStyle::subControlRect(QStyle::ComplexControl, const QStyleOptionComplex*, QStyle::SubControl, const QWidget*) const’:
QSvgThemableStyle.cpp:4447:36: error: ‘PM_TitleBarButtonSize’ was not declared in this scope
const int bw = pixelMetric(PM_TitleBarButtonSize); // button width
^~~~~~~~~~~~~~~~~~~~~
QSvgThemableStyle.cpp:4472:39: error: ‘PM_TitleBarButtonIconSize’ was not declared in this scope
sysBtn.setWidth(pixelMetric(PM_TitleBarButtonIconSize));
^~~~~~~~~~~~~~~~~~~~~~~~~
QSvgThemableStyle.cpp: In member function ‘virtual QIcon QSvgThemableStyle::standardIcon(QStyle::StandardPixmap, const QStyleOption*, const QWidget*) const’:
QSvgThemableStyle.cpp:4604:24: error: ‘PM_TitleBarButtonSize’ was not declared in this scope
sz = pixelMetric(PM_TitleBarButtonSize);
^~~~~~~~~~~~~~~~~~~~~
Makefile:452: recipe for target 'QSvgThemableStyle.o' failed
make[1]: *** [QSvgThemableStyle.o] Error 1
make[1]: Leaving directory '/home/keith/QSvgStyle/style'
Makefile:90: recipe for target 'sub-style-make_first-ordered' failed
make: *** [sub-style-make_first-ordered] Error 2

Change the text style

Hi, would it be possible to change the text style of an element? eg making all menuitems or pushbuttons use bold text?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.