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

Switching users breaks style of menu bar, side bar #3523

Open
ghost opened this issue May 1, 2017 · 6 comments
Open

Switching users breaks style of menu bar, side bar #3523

ghost opened this issue May 1, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented May 1, 2017

So i was just making song when i for a moment switched to a diffrent user.
When i came back Lmms has changed color : ggfsdf
I only found that i changes only this but it maybe could effect other items in lmms that i dont know about.
(sorry if this topic has been already brought up by someone else btw)

@tresf
Copy link
Member

tresf commented May 8, 2017

@Texxiliator I've never seen this before and I don't believe it can technically happen without something incorrect happening to your profile or configuration... let me explain...

  • The way colors are stored are in a file style.css. This file is %PROGRAMFILES%\LMMS\data\themes\default\style.css. This file is part of the LMMS installation and cannot be altered unless admin and UAC is disabled or manually escalated and accepted. (signing in as someone else can't cause this to break)
  • The theme can be changed from default on a profile basis by using the Settings Dialog, Paths, Themes or by editing %USERPROFILE%\.lmmsrc.xml and changing the value of <paths ... artwork="data:/themes/default"> to something else (e.g. data:/themes/classic). I assume you'd have remembered changing this.

Some troubleshooting measures include

  1. Uninstalling and reinstalling LMMS, purging the %PROGRAMFILES%\LMMS directory.
  2. Moving or deleting %USERPROFILE%\.lmmsrc.xml

But if this does nothing, chkdsk /x as admin and reboot might fix it as corrupt Windows 10 (NTFS) filesystem can cause all sorts of weirdnesses, especially with solid state drives.

@ghost
Copy link
Author

ghost commented May 8, 2017

@tresf Did you tryed this? Maybe it's just my PC being weird (again).

@Spekular
Copy link
Member

Spekular commented May 8, 2017 via email

@tresf tresf changed the title Lmms does change some colors when user changes Switching users breaks style of menu bar, side bar May 8, 2017
@tresf
Copy link
Member

tresf commented May 8, 2017

@tresf Did you tryed this? Maybe it's just my PC being weird (again).

Confirmed. Thanks for the bug report.

Steps to reproduce from Windows 10:

  1. Log in as your standard desktop user
  2. Open LMMS 1.2.0-RC2 or higher
  3. Open sidebar
  4. Switch users using Windows, User, Switch Account
  5. Sign right back in as the same desktop user

image

This occurs on 1.2.0-RC2 (Qt5) but not 1.2.0-RC1 (Qt4) pointing to a potential upstream Qt bug.

Interestingly enough... we might be able to work-around it partially.

Here's what happens when I explicitly set a background color. Note how the menu bar bug doesn't occur.

I think with some trial and error, we can fix the items that experience this bug and allow fast-user switching.

/* most foreground text items */
QLabel, QTreeWidget, QListWidget, QGroupBox, QMenuBar {
	background-color: red;  /*  <----- ADDED THIS */
	color: #d1d8e4;
}

image

@BaraMGB
Copy link
Contributor

BaraMGB commented May 8, 2017

I had a similar experience when I installed lmms the first time on Windows 10. But after restart lmms it looked normal. So I don't give something on it.

Look at the Knobs on the second picture. They looked odd too on my installation. Also the mixer looked odd.

@Umcaruje
Copy link
Member

Umcaruje commented May 8, 2017

Hmm, back when I worked on the theme, I'd sometimes get a similar effect when the style-sheet wouldn't get fully parsed, due to a syntax error. Though this only happens on a user switch, I'm not certain if there's a correlation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants