[PR #3607] [MERGED] Fix unreadable QR codes with dark theme enabled #5481

Closed
opened 2026-10-31 20:47:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3607
Author: @Psychosoc1al
Created: 12/25/2025
Status: ✅ Merged
Merged: 1/2/2026
Merged by: @MHSanaei

Base: main ← Head: qr-codes-fix


📝 Commits (1)

  • 5bbff10 Fix QR codes colors inversion

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 web/assets/css/custom.min.css (+1 -1)

📄 Description

What is the pull request?

This PR addresses QR codes displaying which caused some "simple" QR readers (e.g. the one in Nekobox) to not recognize the code with dark theme enabled.

Basically the problem was in the filter:invert(1) applied to the image, which broke the expectations of QR readers, I suppose. So basically changing the rule to not invert, but rather add a white background to an image fixed the problem.

Here is the actual change:

From this:

.dark .qr-cv{
    filter: invert(1)
}

To this:

.dark .qr-cv{
    background-color: #fff;
    padding: 1px;
    border-radius: 0.25rem
}

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

Before / After

  • Inbounds page:
    image
image
  • Subscription page:
    image
image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3607 **Author:** [@Psychosoc1al](https://github.com/Psychosoc1al) **Created:** 12/25/2025 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `qr-codes-fix` --- ### 📝 Commits (1) - [`5bbff10`](https://github.com/MHSanaei/3x-ui/commit/5bbff10f21d88be8d0d615ba06d1e1ba49346c14) Fix QR codes colors inversion ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/css/custom.min.css` (+1 -1) </details> ### 📄 Description ## What is the pull request? This PR addresses QR codes displaying which caused some "simple" QR readers (e.g. the one in `Nekobox`) to not recognize the code with dark theme enabled. Basically the problem was in the `filter:invert(1)` applied to the image, which broke the expectations of QR readers, I suppose. So basically changing the rule to not invert, but rather add a white background to an image fixed the problem. Here is the actual change: From this: ```css .dark .qr-cv{ filter: invert(1) } ``` To this: ```css .dark .qr-cv{ background-color: #fff; padding: 1px; border-radius: 0.25rem } ``` ## Which part of the application is affected by the change? - [x] Frontend - [ ] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots ### Before / After - Inbounds page: <img width="664" height="400" alt="image" src="https://github.com/user-attachments/assets/5abf1ca9-5c29-4944-a190-f962fcaf897a" /> <img width="664" height="400" alt="image" src="https://github.com/user-attachments/assets/1df288ad-b47e-47bf-84ef-9bb2dc9d8457" /> - Subscription page: <img width="460" height="362" alt="image" src="https://github.com/user-attachments/assets/025964bd-0d96-4138-8e67-c74348de51b1" /> <img width="428" height="360" alt="image" src="https://github.com/user-attachments/assets/b588e0ec-1d41-4763-9ff7-ac17cd07219d" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5481
No description provided.