holo-schedule icon indicating copy to clipboard operation
holo-schedule copied to clipboard

[FEATURE] BIG Screen mode

Open YunzheZJU opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. HoloSchedule is rendered in a fixed size area which does not look well on screens with a 4K resolution.

Describe the solution you'd like A toggle in Settings should turn the extension into a big-screen mode...

Describe alternatives you've considered or the extension itself is able to detect the screen size and fit.

Additional context So that more stuff can be rendered into the view, such as the time table.

YunzheZJU avatar Aug 02 '21 13:08 YunzheZJU

https://developer.mozilla.org/en-US/docs/Web/API/Screen/width

YunzheZJU avatar Sep 06 '21 06:09 YunzheZJU

Persoanlly, I have a screen of 13' (1920 * 1080), 24' (1920 * 1080), 32' (3840 * 2160 with 150% scale in system settings). Rendering the area at the 1.33x size on the 32' screen should be fine: 2160 / 150% / 1080 = 1.33.

YunzheZJU avatar Sep 06 '21 07:09 YunzheZJU

Saddly, There seems to be a max size limit of 800w and 600h for an extension popup in Chrome.... https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/ui/views/extensions/extension_popup.h;l=65 https://stackoverflow.com/questions/8983165/how-can-i-expand-the-popup-window-of-my-chrome-extension

YunzheZJU avatar Sep 12 '21 15:09 YunzheZJU

Currently, holo-schedule is rendered in a 375*596 area by default. There is no hope to make this area higher but it is possible to make it wider.

A 2-column layout? or a Grid?

YunzheZJU avatar Sep 12 '21 15:09 YunzheZJU