Skip to content

Svg color schema fixes#1248

Merged
daschuer merged 9 commits intomixxxdj:masterfrom
daschuer:svg_color_schema
Jun 3, 2017
Merged

Svg color schema fixes#1248
daschuer merged 9 commits intomixxxdj:masterfrom
daschuer:svg_color_schema

Conversation

@daschuer
Copy link
Copy Markdown
Member

@daschuer daschuer commented May 5, 2017

This fixes some remaining issues with SVGs, color schemes and scaling.
Now the DarkMetal skin looks nice again.
Fixes https://bugs.launchpad.net/mixxx/+bug/1686663

This includes also some refactoring to remove old unused code.

Comment thread src/widget/paintable.cpp
} else {
m_pSvg->load(source.getData());
}
if (mode == TILE || mode == Paintable::FIXED || WPixmapStore::willCorrectColors()) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change converts all FIXED SVGs to raster? Won't this cause blurry SVGs on hidpi displays?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the latest commit.

@daschuer
Copy link
Copy Markdown
Member Author

daschuer commented May 7, 2017

No, because it creates a 1:1 target pixmap. It was done this way before, this PR move the code a bit around to make it more obvious. For qt5 this will indeed an issue if we not consider the device pixels ... a topic for Mixxx 2.2.

@rryan
Copy link
Copy Markdown
Member

rryan commented May 7, 2017

No, because it creates a 1:1 target pixmap. It was done this way before, this PR move the code a bit around to make it more obvious. For qt5 this will indeed an issue if we not consider the device pixels ... a topic for Mixxx 2.2.

Do you mean it's ok because scaleFactor scales the target pixmap to 2x? That's not the case if you are either using Qt5 or are on macOS on Qt4.

@daschuer
Copy link
Copy Markdown
Member Author

daschuer commented May 7, 2017

Do you mean it's ok because scaleFactor scales the target pixmap to 2x? That's not the case if you are either using Qt5 or are on macOS on Qt4.

Yes. But I was not aware, that macOs already does the scaling.

I now remember that we have enabled it for 2.0 at a time. How plays the new scale factor on MacOs?
Should we revert the scaling auto setting because we now have our own?

Unfortunately I cannot test it. Would you mind to adopt this issue and propose a solution for MacOS?

@daschuer
Copy link
Copy Markdown
Member Author

daschuer commented Jun 2, 2017

@Be-ing the concerns from RJ are issued. Can you pleas have a loop if it works for you?
Thank you.

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Jun 3, 2017

I tested with #1179 and it looks good to me. I can't test whether scaling looks good on Mac though.

@daschuer
Copy link
Copy Markdown
Member Author

daschuer commented Jun 3, 2017

Ok then I will merge it and hope (or actually hope not) we master receive test results form Mac user.
Thank you for looking into it.

@daschuer daschuer merged commit dc45fa8 into mixxxdj:master Jun 3, 2017
@daschuer daschuer deleted the svg_color_schema branch September 26, 2021 17:35
This was referenced Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants