Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: lightDM purple backgroundcolor before image is loaded

  1. #1
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    92
    Distro
    Ubuntu 13.10 Saucy Salamander

    lightDM purple backgroundcolor before image is loaded

    Hello,

    as the topic says, lightdm has a purple background before the acutal background image is loaded... pls subscribe the bug report(click).
    This is pretty annoying if you dont like the purple background theme of Ubuntu.

    Also, is there a way to disable the lightdm startup sound?

    thx

  2. #2
    Join Date
    Feb 2007
    Location
    Rome, Italy
    Beans
    2,184

    Re: lightDM purple backgroundcolor before image is loaded

    Quote Originally Posted by sacridex View Post
    Hello,

    as the topic says, lightdm has a purple background before the acutal background image is loaded... pls subscribe the bug report(click).
    This is pretty annoying if you dont like the purple background theme of Ubuntu.

    Also, is there a way to disable the lightdm startup sound?

    thx
    you need to patch lightdm sources because that purple bg is hardcoded.

  3. #3
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    92
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: lightDM purple backgroundcolor before image is loaded

    Quote Originally Posted by lucazade View Post
    you need to patch lightdm sources because that purple bg is hardcoded.
    Thats what i expected.
    But it looks really ugly, if you have changed grub and plymouth backgroundcolor(both black) and lightdm background image to non purple...

    I actually tried to lookup the lightdm code by myself, but i'm kinda overstrained by looking up such a huge amount of code.

  4. #4
    Join Date
    Feb 2007
    Location
    Rome, Italy
    Beans
    2,184

    Re: lightDM purple backgroundcolor before image is loaded

    Quote Originally Posted by sacridex View Post
    Thats what i expected.
    But it looks really ugly, if you have changed grub and plymouth backgroundcolor(both black) and lightdm background image to non purple...

    I actually tried to lookup the lightdm code by myself, but i'm kinda overstrained by looking up such a huge amount of code.
    in fact i've changed grub, plymouth and lightdm background color

  5. #5
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    92
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: lightDM purple backgroundcolor before image is loaded

    Quote Originally Posted by lucazade View Post
    lightdm background color
    how?

  6. #6
    Join Date
    Feb 2007
    Location
    Rome, Italy
    Beans
    2,184

    Re: lightDM purple backgroundcolor before image is loaded

    Code:
    --- unity-greeter-0.2.6.orig/src/background.vala
    +++ unity-greeter-0.2.6/src/background.vala
    @@ -223,7 +223,7 @@ public class Background : Gtk.Fixed
             GRID,
         }
     
    -    public string default_background {get; set; default = "#2C001E";}
    +    public string default_background {get; set; default = "#000000";}
         public string? current_background {get; set; default = null;}
         public bool draw_grid {get; set; default = true;}
         public double alpha {get; private set; default = 1.0;}
    --- unity-greeter-0.2.6.orig/src/main-window.c
    +++ unity-greeter-0.2.6/src/main-window.c
    @@ -921,7 +921,7 @@ static GObject * main_window_constructor
     	_tmp3_ = accel_group;
     	gtk_window_add_accel_group ((GtkWindow*) self, _tmp3_);
     	memset (&bg_color, 0, sizeof (GdkRGBA));
    -	gdk_rgba_parse (&bg_color, "#2C001E");
    +	gdk_rgba_parse (&bg_color, "#000000");
     	_tmp4_ = bg_color;
     	gtk_widget_override_background_color ((GtkWidget*) self, GTK_STATE_FLAG_NORMAL, &_tmp4_);
     	_tmp5_ = gtk_widget_get_accessible ((GtkWidget*) self);
    --- unity-greeter-0.2.6.orig/src/background.c
    +++ unity-greeter-0.2.6/src/background.c
    @@ -2604,7 +2604,7 @@ static void background_class_init (Backg
     static void background_instance_init (Background * self) {
     	gchar* _tmp0_;
     	self->priv = BACKGROUND_GET_PRIVATE (self);
    -	_tmp0_ = g_strdup ("#2C001E");
    +	_tmp0_ = g_strdup ("#000000");
     	self->priv->_default_background = _tmp0_;
     	self->priv->_current_background = NULL;
     	self->priv->_draw_grid = TRUE;
    --- unity-greeter-0.2.6.orig/src/main-window.vala
    +++ unity-greeter-0.2.6/src/main-window.vala
    @@ -37,7 +37,7 @@ public class MainWindow : Gtk.Window
             add_accel_group (accel_group);
     
             var bg_color = Gdk.RGBA ();
    -        bg_color.parse ("#2C001E");
    +        bg_color.parse ("#000000");
             override_background_color (Gtk.StateFlags.NORMAL, bg_color);
             get_accessible ().set_name (_("Login Screen"));
             has_resize_grip = false;

  7. #7
    Join Date
    Jun 2010
    Location
    Berlin
    Beans
    305
    Distro
    Ubuntu Development Release

    Re: lightDM purple backgroundcolor before image is loaded

    how did you change the color in plymouth and lightdm?
    cheers

  8. #8
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    92
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: lightDM purple backgroundcolor before image is loaded

    /lib/plymouth/themes/default.grub for the grub background
    Code:
    if background_color 0,0,0; then
    [...]
    you have to run update-grub afterwards

    /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script for plymouth
    Code:
    [...]
    Window.SetBackgroundTopColor (0.00, 0.00, 0.00);     # Nice colour on top of the screen fading to
    Window.SetBackgroundBottomColor (0.00, 0.00, 0.00);  # an equally nice colour on the bottom
    [...]

    edit:
    @lucazade: thanks, im trying to replace it.
    Last edited by sacridex; April 1st, 2012 at 03:31 PM.

  9. #9
    Join Date
    Feb 2009
    Location
    Hull, England
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: lightDM purple backgroundcolor before image is loaded

    Sacridex..
    If you manage to solve the Lightdm background issue, please post back.
    This issue bugged me in 11.10 & is still not fixed.

  10. #10
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    92
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: lightDM purple backgroundcolor before image is loaded

    I just changed the color in the code(like lucazade described).
    Get the code, change the two colors (from #2C001E to #000000) in the background.vala and main-window.vala file, then configure, make, make install it. (the .c files do not need to be changed, they are newly created by the vala compiler).

    EDIT: I cut the flaming.
    Figured out how to solve the problem. ^^
    Last edited by sacridex; April 4th, 2012 at 02:52 PM.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •