unixporn-dots / unixporn-dots.github.io

A collection of dotfiles and icons from the r/unixporn community
https://unixporn-dots.github.io
111 stars 19 forks source link

Major Improvements & Xtras #49

Closed Rahuletto closed 2 years ago

Rahuletto commented 2 years ago

In Progress:

Done:

✔ Indicator for multi-image
✔ Hover effect in gtk/icons/dotfiles select box
✔ Fix Stretched images
✔ Ability to zoom in images
✔ Ability to close image by clicking background

Note !

This is not the most efficient way to achieve. So if you have a better way, Make sure to suggest ;)

Rahuletto commented 2 years ago

✔ Fix Stretched images

This PR also fixes images to be in a exact ratio and prevents stretching

Example:

Before After
image image
Rahuletto commented 2 years ago

✔ Ability to zoom in images

This PR also implements zoom-in/zoom-out functionality to images (Only few images work by this system due to CSS)

Slider: image

Example:

100% width 200% width
image image
Rahuletto commented 2 years ago

⭕ Minor Improvements

This PR also improved styles and some minor yet unnoticeable changes

✔ New Theme Color !
✔ New Scrollbar with floating effect [Meaning it is not in a corner] (like Safari/Discord scrollbar)
✔ Updated transitions ! Now things feel much snappier
✔ Fixed contrast issues
Before After
image image

This styling rule follows my new portfolio style too ! (Btw the old site styling is somewhat based on my old portfolio site)

Before After
image image
Rahuletto commented 2 years ago

This is to address the issue #46

@Pesc0 @ArmoredVortex @ManorSailor

ArmoredVortex commented 2 years ago

I don't know if its just me but the zoom just doesn't work for me at the moment. image Browser: Firefox-Nightly 106.0a1 User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0

The slider does change the size of the images but they overflow all the time. Plus the slider doesn't work for a lot of images.

Rahuletto commented 2 years ago

This is mainly due to the original image size. If u try with an image that has a large size (like some gtk-themes), you can zoom. I don't know why. Maybe we can implement it via scale() in css. And these changes have been made under 3 hours (rushed). I'll implement a native zoom system if I manage to 😳

And yea I made it to overflow and make it change the zoom position via the scrollbar.

This is not the final product so maybe we can change it.

Rahuletto commented 2 years ago

✔ Indication for multi-image

This PR commit implements an indication to see the number of images available

image image

Rahuletto commented 2 years ago

⭕ Minor Update

image image

Rahuletto commented 2 years ago

This PR is ready for review and can be merged