Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setBackgroundPixmap does not work #86

Closed
anaselli opened this issue Oct 17, 2022 · 1 comment
Closed

setBackgroundPixmap does not work #86

anaselli opened this issue Oct 17, 2022 · 1 comment

Comments

@anaselli
Copy link
Contributor

anaselli commented Oct 17, 2022

This peace of code (with right path and png) shows that layout background does not work using gtk
`
YDialog * dialog = YUI::widgetFactory()->createPopupDialog(YDialogNormalColor);
YLayoutBox * vbox = YUI::widgetFactory()->createVBox( dialog );
auto bannerMinSize = YUI::widgetFactory()->createMinSize(vbox, 60, 4);
bannerMinSize->setBackgroundPixmap("/home/anaselli/src/manatools/venv/share/icons/hicolor/images/background_dark.png");
YAlignment * align = YUI::widgetFactory()->createAlignment(bannerMinSize, YAlignCenter, YAlignUnchanged);
YImage* img = YUI::widgetFactory()->createImage( align, /home/anaselli/src/manatools/mpan/extras/images/Logo_big_dark.png;

`
QT view:

immagine

Gtk one:

immagine

anaselli added a commit to anaselli/libyui-gtk that referenced this issue Oct 17, 2022
@anaselli
Copy link
Contributor Author

Gtk view after above commit:
immagine

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

No branches or pull requests

1 participant