UI improvements/tiny fixes

发表回复

表情
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode 允许
[img] 允许
[url] 允许
表情 允许

主题浏览
   

展开视图 主题浏览: UI improvements/tiny fixes

Re: UI improvements/tiny fixes

drakinite » 周四 11月 19, 2020 12:27 pm

:grin:

Re: UI improvements/tiny fixes

Ludek » 周四 11月 19, 2020 11:20 am

drakinite 写了: 周四 11月 19, 2020 9:21 am This statement does work:

代码: 全选

height: ~"calc(100% - (2 * @{innerDlgPadding}))";
Great! Just used it ;-)

(as I also found that my original suggestion does not work when I tried it later :-) )

Re: UI improvements/tiny fixes

drakinite » 周四 11月 19, 2020 9:21 am

Oh nice, thanks for the note! I didn't notice that class.

However, Lesscss does its own weird stuff with the calc() function. It evaluates that function and turns it into simply "calc(80%)". See https://github.com/less/less.js/issues/974

This statement does work:

代码: 全选

height: ~"calc(100% - (2 * @{innerDlgPadding}))";

Re: UI improvements/tiny fixes

Ludek » 周四 11月 19, 2020 5:00 am

BTW: instead of style="height: 100%" you can use already existing stretchHeight class (defined in skin_layout.less)

Also this code does not look very clean:

代码: 全选

.innerDlg {
    display: block;
    padding: 10px;
}
.innerDlg .dlgArtwork {
    height: ~"calc(100% - 20px)";
}
cleaner would be something like this:

代码: 全选


@innerDlgPadding: 10px;
.innerDlg {
    display: block;
    padding: @innerDlgPadding;
}
.innerDlg .innerDlgHeightWithoutPadding {
    height: calc(100% - (2 * @innerDlgPadding));
}

Re: UI improvements/tiny fixes

Ludek » 周三 11月 18, 2020 4:00 pm

Re: UI improvements/tiny fixes

drakinite » 周二 11月 17, 2020 4:09 pm

Here's a small improvement to the track info dialog! Originally, the thumbnails for track info did not show up the right size (See the empty space below the artwork), and that's because it's given a raw pixel size that is independent of the rest of the popup.

图片

Giving it a CSS property of calc(100% - 20px) [because the dialog's inner padding is 10px on the top and bottom) makes it the right size every time.
I gave the artwork a class name of "dlgArtwork" and put the new attribute inside skin_layout.less, and I also had to give its parent div a hardcoded attribute height:100%.
In dlgTrackInfo.js, thumbSize had to be increased so that the resolution of the image is higher, and the code that sets its height and width had to be commented out; except for the width of unknownAA, which had to stay the same.

I think it looks quite a bit better now :slight_smile:
图片
图片

dlgTrackInfo.html: https://puu.sh/GOwjF/ec65e924eb.html
dlgTrackInfo.js: https://puu.sh/GOwjT/26ac60220a.js
skin_layout.less: https://puu.sh/GOwld/ea5ba889f3.less

Re: UI improvements/tiny fixes

drakinite » 周一 11月 16, 2020 8:04 pm

Oh wow, I didn't even realize Git didn't exist until 2005. I had assumed it was much older than that.
(MM was initially created in 2001, back when it was called Songs-DB)

Re: UI improvements/tiny fixes

Peke » 周一 11月 16, 2020 6:55 pm

Hi,
That is question for Jiri. I guess Git was not available at time MM started to develop and it worked since with no issues. It is easy to navigate and check changes/revisions and debug for regressions.

Re: UI improvements/tiny fixes

dtsig » 周日 11月 15, 2020 1:39 pm

So you use Subversion rather than Git? Any reason?

Re: UI improvements/tiny fixes

Peke » 周六 11月 14, 2020 9:03 pm

drakinite 写了: 周六 11月 14, 2020 3:37 pm Just wondering, what does SVN stand for?
SVN = https://subversion.apache.org/ One of most recent reads https://blog.codota.com/svn-vs-git/ and https://svnvsgit.com/

Re: UI improvements/tiny fixes

drakinite » 周六 11月 14, 2020 3:37 pm

You're welcome, I'm glad you like them! :grinning:

Just wondering, what does SVN stand for?

Re: UI improvements/tiny fixes

Ludek » 周六 11月 14, 2020 3:32 pm

I like your changes to the sys buttons!
So I commited the changes to SVN (will be in build 2275) together with your comments.

Thanks for contributing!

Re: UI improvements/tiny fixes

drakinite » 周六 11月 14, 2020 11:54 am

Thanks for taking my suggestions; Hopefully there's something that at least works with as many scaling modes as possible. The
0.15px one is definitely ad-hoc, but that's the best I could come up with so far. Also I just saw your reply about the checkboxes - I'm glad you like it! :grinning:
I've also got a new one (I was in the middle of writing it when you replied initially)

Another improvement on skins - The top-right window buttons could only be clicked properly when you mouse over the icons themselves, instead of the entire space that they are contained by. The miniplayer switch button already had a 7px vertical padding that let it be clicked from the entire top bar, so I gave the sysbutton class the same amount of padding (and took away its margins). This makes the window buttons much more easily clickable. In addition, I gave the material design skins some Windows-like hover colors, to make it feel more native.

For some reason, the buttonsContainer class had a "right" attribute of 2px, which meant that you could not click the exit button when dragging the mouse all the way to the top-right corner of the screen (which all other apps can do). Removing that bit of margin makes it much nicer in my opinion. The Black Monkey and Monkey Groove skins could also benefit from a similar hover color, but I'm not as familiar with those designs so I don't know what would look good on those skins. But since I changed skin_mainwindow, they still have better clickability with the modification. :slight_smile:

图片

windowtitle.html (changes are commented): https://puu.sh/GNwXZ/fe5291750b.html
skin_mainwindow.less (changes are commented): https://puu.sh/GNwQV/4c07829dd5.less
Material Design Dark skin_mainwindow_add.less: https://puu.sh/GNwSV/d277950b6d.less
Material Design skin_mainwindow_add.less: https://puu.sh/GNwQ4/1fc20a76be.less

Re: UI improvements/tiny fixes

drakinite » 周六 11月 14, 2020 11:22 am

Oh, jeez, I didn't realize it was possible to scale with values other than 100/125/150/175/200.

At that rate I suppose the best thing that can be done is whatever looks the best on as many scaling values as possible.

Re: UI improvements/tiny fixes

Ludek » 周六 11月 14, 2020 11:17 am

Hmm, setting checkBoxSize to even value does not solve anything as the value is same for all scalings (and just internally multiplied by the scaling coeficient) :-/
Your trick with top/left 0.15px seems quite add hoc and also does not work for all the scaling values either (e.g. at 109% it is still a little bit off center), but because 109% is not a common value then I guess I will use it as a temporal workaround for the issue ;-)

页首