Skip to content

fix: fix hardcoded mouse browsing background 修正寫死的滑鼠瀏覽底色 #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

IepIweidieng
Copy link
Contributor

@IepIweidieng IepIweidieng commented Dec 16, 2021

Relevant issue: #18

The support for customizing mouse browsing background was dropped in the following commit:
對自訂滑鼠瀏覽底色的支援已於下列 commit 中移除:

  • 8618472 "Refactor out easy reading and rendering"

The functionality is reimplemented with the use of a new CSS variable --highlightBG.
該功能已以使用新 CSS 變數 --highlightBG 重新實作。

Screenshots

image

image

Relevant issue: robertabcd#18

The support for customizing mouse browsing background
was dropped in 8618472 "Refactor out easy reading and rendering".

The functionality is reimplemented
with the use of a new CSS variable --highlightBG.

* src/js/:
    * term_buf.js:
        * Export termColors[] for the value of --highlightBG
    * term_view.js:
        * Add TermView.prototype.updateHighlightColor()
          to set up the CSS variable --highlightBG
            * Invoked by:
                * term_view.js TermView()
                * pttchrome.js App.prototype.onPrefChange()
                  case 'mouseBrowsingHighlightColor'
                    * Drop the unnecessary redraw()
* src/css/color.css:
    * Add styling of class .hl
* src/components/Row/LinkSegmentBuilder.js:
    * class LinkSegmentBuilder build():
        * Set CSS class .hl instead of hardcoded BG color class .b2
@IepIweidieng IepIweidieng changed the title fix: fix hardcoded mouse browsing background fix: fix hardcoded mouse browsing background 修正寫死的滑鼠瀏覽底色 Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant