contao / package-list

Contao Package List
https://extensions.contao.org
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Implement dark-mode #10

Closed zoglo closed 6 months ago

zoglo commented 7 months ago

Description

This PR implements Dark-Mode (and necessary layout changes due to design issues) for the package-list: https://extensions.contao.org/

It also addresses https://github.com/contao/contao-manager/issues/681 and sets the groundwork for implementing dark-mode into the Contao Manager.


Preview

Can be temporarily accessed through the following link: ...

Mobile: image

Desktop: image image


Features


Layout-Changes

Package Icons

As the extensions do not provide icons for light and dark mode, the package icons are delivered on a light background. This means that layout changes have been made to properly introduce the dark mode and still keep the corporate identity intact.

Icons are also aligned centered and have a fixed size (fixing the issue of icons being vertically higher, thus leading to layout breaks) image

image

Icons are now always shown throughout the display sizes due to style changes. image image

Dropdown menu (Language Switch)

The layout of dropdown menus has been slightly modified for better UX and visibility on dark mode (cursor pointer, hover effects) image

Popup

The package icons within the popup follow the same layout as the overview: image

image

zoglo commented 7 months ago

@aschempp

This is ready to merge now

zoglo commented 6 months ago

@aschempp As discussed in the contao call, we went back to the original icon. I also added dark-mode colors for the normal button: image

aschempp commented 6 months ago

Thank you @zoglo! ❤️