码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Chrome Thems 介绍


    Chrome 主题介绍

    • 1. 主题
    • 2. 主题编写
      • 2.1 colors
      • 2.2 tints
      • 2.3 images
      • 2.4 properties
    • 3. 参考

    1. 主题

    主题是一种特殊的扩展,可以更改浏览器的外观。但它们不包含JavaScript或HTML代码

    2. 主题编写

    {
        "version":"2.6",
        "name":"camo theme",
        "manifest_version":3,
        "theme":{
            "images":{
                "theme_frame":"images/theme_frame_camo.png",
                "theme_frame_overlay":"images/theme_frame_stripe.png",
                "theme_toolbar":"images/theme_toolbar_camo.png",
                "theme_ntp_background":"images/theme_ntp_background_norepeat.png",
                "theme_ntp_attribution":"images/attribution.png"
            },
            "colors":{
                "frame":[71,105,91],
                "toolbar":[207,211,192],
                "ntp_text":[20,40,0],
                "ntp_section":[36,70,0],
                "ntp_link":[207,221,192],
                "button_background":[255,255,255]
            },
            "tints":{
                "button":[0.33,0.5,0.47]
            },
            "propertites":{
                "ntp_background_alignment":"bottom"
            }
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28

    2.1 colors

    RGB模式,可以设置的字段如下:

    • background_tab_inactive
    • background_tab
    • background_tab_incognito
    • background_tab_incognito_inactive
    • bookmark_text
    • button_background
    • frame
    • frame_inactive
    • frame_incognito
    • frame_incognito_inactive
    • ntp_background
    • ntp_header
    • ntp_link
    • ntp_text
    • omnibox_background
    • omnibox_text
    • tab_background_text
    • tab_background_text_inactive
    • tab_background_text_incognito
    • tab_background_text_incognito_inactive
    • tab_text
    • toolbar
    • toolbar_button_icon
    • toolbar_text

    2.2 tints

    可以用来指定要应用于UI的某些部分(如按钮、框架和背景标签也)的色调
    色调采用色相-饱和度-亮度(HSL)格式,使用0-1.0范围内的浮点数

    • 色相 是绝对值,0和1位红色
    • 饱和度 相对于当前提供的图像,0.5表示无变化,0表示完全不饱和,1表示完全饱和
    • 亮度 也是相对的,0.5表示无变化,0表示所有像素为黑色,1表示所有像素为白色

    或者可以说会用任何HSL值来指定无更改-1.0
    可以设置的值如下:

    • background_tab
    • buttons
    • frame
    • frame_inactive
    • frame_incognito
    • frame_incognito_inactive

    2.3 images

    必须是png,否则无法显示。支持的字段如下:

    • theme_frame
    • theme_frame_inactive
    • theme_frame_incognito
    • theme_frame_incognito_inactive
    • theme_toolbar
    • theme_tab_background
    • theme_tab_background_inactive
    • theme_tab_background_incognito
    • theme_tab_background_incognito_inactive
    • theme_tab_background_v
    • theme_ntp_background
    • theme_frame_overlay
    • theme_frame_overlay_inactive
    • theme_button_background
    • theme_ntp_attribution
    • theme_window_control_background

    2.4 properties

    指定背景对齐方式、背景重复和备用logo等属性。支持字段如下:

    • ntp_background_alignment
    • ntp_background_repeat
    • ntp_logo_alternate

    3. 参考

    上述的内容主要来自于官方网站,但是由于需要科学上网,以备不时之需也算是学习笔记。

  • 相关阅读:
    牛客网经典Java面试常见题
    工业和信息化部办公厅 市场监管总局办公厅关于开展2023年度智能制造系统解决方案揭榜挂帅项目申报工作的通知
    创建 SAP Fiori Catalog 时遇到的 duplicate 记录的问题分析
    12月3日:thinkphp模型与数据库相同的部分
    为华生物胆固醇甲氧基聚乙二醇CHOL-MPEG CLS-MPEG 新型胶束载体研究方向
    Lepton 无损压缩原理及性能分析
    机器人工具箱学习(三)
    RocketMQ源码分析(十四)之IndexFile
    【并发编程】Lock接口
    [JS真好玩] 掘金创作者必备: 监控每天是谁取关了你?
  • 原文地址:https://blog.csdn.net/weixin_41111116/article/details/125917412
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号