Re: initialize `background-image` with a resource file

2022-08-23 Thread Andrew Potter via gtkmm-list
On Tue, Aug 23, 2022 at 10:44 AM Master via gtkmm-list wrote: > The problem is that I dont know how to tell the `background-image` inside > the style provider to "get the image from resource" instead of "file" > please help me. > Hello, You can set background image to a resource like: background-

initialize `background-image` with a resource file

2022-08-23 Thread Master via gtkmm-list
in my gtkmm app i have a label that has a background image thanks to css provider. like this: ``` MainWindow::MainWindow(): Mylabel(Hello) { provider = Gtk::CssProvider::create(); provider->load_from_data( "#LogoLabel{" //"color:#80;" //"color:#5485ae;" "color:#0075ff;" "}" "#PleaseHitKeyLbl{"