Gnome Shell 样式表

问题描述

所以我正在制作一个 gnome shell 扩展,但我不知道如何使我的扩展的一部分具有正常的字体粗细。这是我的 extension.js 文件:

'use strict';

const { St,Clutter } = imports.gi;

const Main = imports.ui.main;

let _myText;

class Extension {

    enable() {
    _myText = new St.Label({ text: 'This should be normal font weight.',y_align: Clutter.ActorAlign.CENTER,style_class: 'panel-button',track_hover: false,reactive: false});
    Main.panel._leftBox.insert_child_at_index(_myText,10)
    }

    disable() {
    _myText.destroy();
    }
}

function init() {
    return new Extension();
}

这是我的 stylesheet.css 文件:

StLabel._myText {
    font-weight: normal;
}

我做错了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)