Comments (5)
Something like that?
https://github.com/nitramr/scribus-indigo/wiki/Customize-Scribus
from scribus-indigo.
Can we use SVGs for icons as well ? They are more HiDPI friendly, right ?
from scribus-indigo.
Good idea. To achieve it we can modifiy the iconmanager.cpp and load SVG's via:
http://doc.qt.io/qt-5/qsvgrenderer.html
QSvgRenderer svgRenderer( somesvgfile );
QPixmap pix( svgRenderer.defaultSize() ); // scale factor has to be applied
QPainter pixPainter( &pix );
svgRenderer.render( &pixPainter );
Based on this 'pix' Pixmap we can generate new QIcons with enabled / disabled states (as I used it for my themes). Based on screen type we can set a scale factor by generating the new QPixmaps.
I will make some tests to check it out.
But one hint at this point. We have to check if we can use the same svg file for 16px* icons and 32px* icons because of level of details. Maybe we still would need two different versions. (16px* and grater than 16px*).
*) pixel sizes demonstrate the relative scaling between icons.
from scribus-indigo.
It is simplier as expected. Qpixmap can load nativly a SVG file. I have made a test with pages panel icon here: a878962
Bad thing of using SVG files is the file size. Regular png icon need ca 300 byte, SVG icon need 3,5KB
In latest commit there is still a scale factor missing to render the icon in right size.
My idea would be to set a normal render size by loading of any icon. Based on screen type it can by multiplied by 2.
@luzpaz do we have svg files for all used Scribus icons? If yes I can make some more tests for icons in different sizes (16px, 22px, 32px etc.)
from scribus-indigo.
opened a ticket at https://bugs.scribus.net/view.php?id=14528
from scribus-indigo.
Related Issues (20)
- Opening disabled folds in Properties - single and double clicks. HOT 1
- Program hangs when opening script dialog without open document HOT 5
- Add theme issues here HOT 3
- OSX TravisCI build fails because it exceeds compilation time HOT 4
- Make ~/.config/scribus-indigo/ the default prefs dir HOT 3
- text properties to content palette HOT 1
- Proposal: color ramps HOT 1
- Workspace loader can't handle missing entries in prefs file HOT 2
- floating toolbar after reopening scribus HOT 3
- Build warnings for e308a9e
- Per the scribus-indigo wiki style guide philosophy: uniformity of the delete button HOT 1
- Error while compiling with qt 5.8 rc HOT 3
- Take a look at QCAD dock HOT 3
- setting font sizes in the preferences changes theme
- Could not find a package configuration file provided by "Qt5Core"
- doesn't compile on poppler 0.60 HOT 2
- Build error with recent versions of icu
- AppImage doesn't work; some iconmanager error when compiling HOT 1
- Compiling in Manjaro AUR HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scribus-indigo.