Unsolicited Myrlyn Suggestion: Dividers in Sidebar

@shundhammer, I love the work you are doing with Myrlyn.

The recent threads about adding color to the UI got me thinking about readability in general and I remembered the first time I used Myrlyn and saw this screen:


(Sorry for borrowing your screenshot :wink: )

I remember it taking me a few reads to realize which paragraph was describing which button on the sidebar on the left. In retrospect it’s pretty clear because of the spacing (and the content), but I think because Refresh List doesn’t have a description underneath it and Package Update and Dist-Upgrade both have descriptions above them, it’s easy to assume that the the text above a button is describing the button below.

A few separators and maybe even a description at the bottom for Refresh List could help remove any ambiguity. Something like this:

Anyway, it’s just an idea!

3 Likes

Those tumbleweed users with the attribute “senior” have expressed frustration with the readability of myrlyn due to the small text size. This was expressed in several older threads. The fix was to use “sudo -E myrlyn’”.

Any mods to myrlyn should incorporate that change.

thanks , tom kosvic

That is not a change in Myrlyn at all. It is a change in how to call/start it.

1 Like

I was hoping that changes could be made in the source of myrlyn to obviate the need to start the code in the manner I showed in order to get a more readable display. I thought that the thrust of my comment would be obvious but I apologize if my meaning was not clear.

tom kosvic

But your Reply has zero to do with “Dividers in Sidebar” :+1:

1 Like

Stefan already explained in some other Myrlyn thread why he does not use the sudo -E way. That way requires you to either

  • start myrlyn from CLI, since it will not throw a password dialog on the DE
  • or have (like me) a sudoers file
1 Like

I thought if someone was to review and/or modify the UI for merlyn that enlarging the font size could be added to that work effort.

I use the sudo -E way in a desktop launcher in mate de; not from a terminal. It does not throw a password dialogue. It allows me to be better able to read myrlyn which is all that I wanted when I first posed the issue.

tom kosvic

Then you have a sudoers file or entry. Simply because sudo otherwise asks for a password to elevate privileges.

This all comes down to the same general problem: You need to run Myrlyn with root privileges to do anything worthwhile.

But no matter if it’s about the theme (light vs. dark), the font size or a UI scale factor, you need to set those things for the root account; and there are different ways to do that.

The problem is that sudo in its default configuration just nukes all environment variables, so you can’t preserve the required environment variables across the sudo call. The supplied myrlyn-sudo script (which is used in the supplied myrlyn.desktop file preserves a well-defined set of environment variables for just that purpose; but it depends on your personal setup if that actually works.

In some cases it’s necessary to set up some things for the root environment. If you never logged in as root, nothing is set up for that account, so the desktop environment (KDE Plasma, GNOME, Xfce, Mate, LXDE or whatever) uses the defaults, and those defaults may not be what you want.

You can either log in as root once into that desktop environment and set everything to your liking, or use qt6ct to set e.g. your preferred font size and then set an environment variable QT_QPA_PLATFORMTHEME="qt6ct".

In many cases it is useful to set some environment variables to survive the sudo call in your personal ~/.config/openSUSE/myrlyn-sudo.conf:

% cat ~/.config/openSUSE/myrlyn-sudo.conf 
# Qt theme to use
# QT_QPA_PLATFORMTHEME=qt6ct

# No high-DPI scaling - it only results in pixel mush
QT_ENABLE_HIGHDPI_SCALING=0
QT_SCALE_FACTOR=1

You can set all environment variables there that are preserved in myrlyn-sudo:

For a larger font size, you can either use qt6ct (as root!), or use QT_SCALE_FACTOR. Or set it in the root account’s desktop environment.

Some others simply use sudo -E to keep the entire environment; but security purists will object.

But in summary, the problem is your personal settings vs. the root account’s settings.

Late, but not forgotten… :smiley:

I spent a lot of time to get rid of those “baroque” sunken or raised panels and all kinds of dividers that we used to have in the YaST Qt package manager. They make the GUI appear cluttered and untidy.

In this case, there are pretty large empty spaces between the individual parts of that left side panel to group them. Were you really confused what belongs to what? Seriously? :smiley:

I mean, starting from the top, the blurb text below the “Updates” heading can really only belong to that heading. I don’t think there can be any doubt.

And that pattern continues: Button followed by blurb; button followed by blurb. Only the last button “Refres List” did not deserve a blurb because it’s so self-explanatory; in contrast to the two other buttons that really need some explanation.

In principle I really, really dislike static text in user interfaces; it forces the user to read it again and again - and ultimately it activates the brain’s ad blocker to simply ignore such texts.

Here I made an exception because it’s not at all obvious what’s the difference between “Package Update” and “Dist Upgrade”, and also not what exactly the criteria are for a package to appear in that list.

When you ask zypper list-updates, it will show you only those packages that can successfully be updated; because it will simply do a dry-run of zypper up, i.e. switch the dependency resolver to “package update” mode, resolve dependencies and try to do the update - everything but actually executing it.

But we can’t do that here in Myrlyn; you might have pending changes that would need to be saved before and restored after and do the same thing; and revert all changes. And all that only to get the list of packages to display.

Instead, Myrlyn simply puts all the “blue version” packages into the list, i.e. all those that have a “candidate” version that you could potentially update to. But since the dependency resolver is not involved at all here, we don’t know yet if that will actually be successful, or if there will be a dependency conflict.

And this is why there might be some “sad face” packages left over: Because the list is filled a bit more optimistically than the harsh reality warrants.

This is why we need those explanations.

But as you can clearly tell from the length of my texts, deep in my heart I really hate explanations. Err… :slightly_smiling_face:

2 Likes

9 posts were split to a new topic: Myrlyn Theme Query

A post was merged into an existing topic: Myrlyn Theme Query

Thank you Stefan for Myrlyn und YaST (and YaST2) :heart_eyes:
openSUSE user since SuSE Linux 6.2.
Wow, what a great time and journey.

1 Like

I agree that less is more when it comes to UI design and I definitely appreciate the clean, simple design of Myrlyn.

Like I said in the original post, after rereading it, it became clear which description was describing which button. It also helped already knowing the difference between zypper up and zypper dup, but it got me wondering about users who might rely more on Myrlyn, especially new users with little-to-no prior knowledge about zypper/libzypp and whether they might get confused or not.

Yes, of course, and after rereading it a bit more carefully, that became painfully obvious. But maybe a user with less experience with zypper might be unsure even after a second read.

I just thought that a clear divider would make it easier to understand at first glance, especially for the “moron in a hurry1.”

But I respect your preference for a cleaner UI!

1 In this case, me ;)

Even if nobody liked it, I am thrilled that at least my dumb idea got the ball rolling for Myrlyn Theme Query. :smiley:

1 Like

This Reply is simply to provide some interesting feedback on “separation of options / listings”.

I didn’t think much about the post initially … but oddly, as I’m viewing various websites (that I use quite often) , I made it a point to see how various websites differentiate lists or sections.

I see a common theme for showing listed items, or separation of items. Showing three screenshots that are typically common choices websites use.

The first screenshot is, ironically enough, THIS forum’s website. It uses lines to separate post listings.

The second screenshot is a weather website, showing today’s prediction of the hourly temperatures/etc. It uses
black | light grey blocks for differentiation.

The third screenshot is the dash of one of our Mercedes’, using a line to separate the mileage statistics (Trip mileage and Overall :slight_smile: )
.


.

.