-
Notifications
You must be signed in to change notification settings - Fork 40
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
No way to set solid background colour #35
Comments
I think the best thing to do is to modify ( This might be useful in the future if you wanted to allow setting solid colours in the GUI, or handle the --set-color without a filename, and here to set a fallback background colour. That doesn't seem to me to be a matter of simple hacking though. (I'm not familiar with what's going on with pixbufs, colormaps, windows, screens...) But I do see that your orig->fill(GdkColorToUint32(bgcolor)) So, if they called a function like this one: /**
* Copies and returns pixbuf with bgcolor filled.
*
* @param orig The original pixbuf
* @param bgcolor The colour to fill background with
*/
Glib::RefPtr<Gdk::Pixbuf> SetBG::fill_colour(const Gdk::Pixbuf orig,
Gdk::Color bgcolor) {
Glib::RefPTr<Gdk::Pixbuf> retval = orig->fill(GdkColorToUint32(bgcolor));
return retval;
} and we had a function called e.g. bool SetBG::set_bg_colour(Glib::ustring &disp, Gdk::Color bgcolor); that did the same stuff as or if we hacked the current that would solve the problem. |
Has this been implemented yet in any of the builds here on GitHub? I'm using build 1.5.2-2 in Ubuntu 14.04 and I have to use a transparent png to set a solid background color... Thanks |
The code at (
SetBG::set_bg
on master,SetBG::set_bg
on setter_refactor) doesn't allow for a simple interface to set the background to a solid colour with no image file.UI symptoms:
--set-color
The text was updated successfully, but these errors were encountered: