|  | 
 
 发表于 2025-5-28 20:38:17
|
显示全部楼层 
| 你好,你的规则填的对,我有修改了下,增加了 点选模型的部分 变成 不透明的规则。
 
 
 复制代码aistudio.google.com##.mat-mdc-dialog-container:remove-class(mat-mdc-dialog-container)
aistudio.google.com##body:not(.dark-theme) .mat-primary:style(background-color: white !important)
aistudio.google.com##.dark-theme .mat-primary:style(background-color: #202124 !important)
 或者下面的规则也可以
 
 复制代码aistudio.google.com##body:not(.dark-theme) .gmat-mdc-dialog .mat-mdc-dialog-container:style(background-color: white !important)
aistudio.google.com##body:not(.dark-theme) .mat-primary:style(background-color: white !important)
aistudio.google.com##.dark-theme .gmat-mdc-dialog .mat-mdc-dialog-container:style(background-color: #202124 !important)
aistudio.google.com##.dark-theme .mat-primary:style(background-color: #202124 !important)
 另外如果不用ublock扩展,只使用stylus 扩展,其自定义样式为:
 
 复制代码@media (prefers-color-scheme: light) {
   body:not(.dark-theme) .gmat-mdc-dialog .mat-mdc-dialog-container,
   body:not(.dark-theme) .mat-primary{
                background-color: white!important;
        }
}
.dark-theme .gmat-mdc-dialog .mat-mdc-dialog-container ,
.dark-theme .mat-primary{
    background-color: #202124!important;
}
 | 
 |