ungoogled-software/ungoogled-chromium

Increase width and height of the chrome extension's popup

Open

#3,018 创建于 2024年9月5日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Python (771 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (18,674 star)
PR 合并指标
 (平均合并 1天 11小时) (30 天内合并 9 个 PR)

描述

Description

Increase the width and height of the chrome extension's popup page

Who's implementing?

  • I'm willing to implement this feature myself

The problem

Currently in the source code of Chromium, there is a piece of code about the width and height of the popup page for chrome extensions. But this part of the code is the hard code and cannot be changed. static constexpr gfx::Size kMaxSize = {800, 600};

refer to this link.

  // The min/max height of popups.
  // The minimum is just a little larger than the size of the button itself.
  // The maximum is an arbitrary number and should be smaller than most screens.
  static constexpr gfx::Size kMinSize = {25, 25};
  static constexpr gfx::Size kMaxSize = {800, 600};

Another reference : https://stackoverflow.com/q/74963536 https://stackoverflow.com/q/8983165

Possible solutions

Hope that the Ungoogled-Chromium team can make this part of the code kMaxSize larger, such as {3000, 2000} or {1600, 1000} . Or provide a option for users to customize, or delete this line.

Because current resolution of 4k monitors is 3840 × 2160 or 4096 × 2160. With the development of the times, the resolution of the display is also increasing, so in order to match today's display resolution, hope to modify this part of the code.

Or through other methods, the ultimate goal is to increase the size of the popup window when using the Chrome extension.

Thank you!

Alternatives

No response

Additional context

No response

贡献者指南