Skip to content
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

Changes in size of "PanelMenu" #4

Closed
simonbcn opened this issue May 12, 2012 · 1 comment
Closed

Changes in size of "PanelMenu" #4

simonbcn opened this issue May 12, 2012 · 1 comment

Comments

@simonbcn
Copy link

Hi,
I have done several changes in size of labels of PanelMenu to avoid the movement of the other icons in panel.

const unitsize = 35;
const unitlabelsize = 30;
.....
PanelMenu.Button.prototype._init.call(this, 0.0);
    this._box = new St.BoxLayout();
    this._icon = this._get_icon ("");
    this._upicon = this._get_icon ("up");
    this._downicon = this._get_icon ("down");
    this._up = new St.Label({ text: "--", style_class: 'sm-label'});
    this._upUnit = new St.Label({ text: "B/s", style_class: 'sm-unit-label'});
    this._down = new St.Label({ text: "--", style_class: 'sm-label'});
    this._downUnit = new St.Label({ text: "B/s", style_class: 'sm-unit-label'});
    this._up.set_width (unitsize);
    this._upUnit.set_width (unitlabelsize);
    this._down.set_width (unitsize);
    this._downUnit.set_width (unitlabelsize);
....

I have changed the stylesheet.css too:

.sm-label {
    color: #bbb;
    font-size: 12px;
    text-align: right;
}

.sm-unit-label {
    color: #aaa;
    font-size: 8px;
    text-align: right;
    padding: 5px 2px 0px 0px;
}

I hope this help you.
Thanks for your work.

@hedayaty
Copy link
Owner

hedayaty commented Nov 2, 2014

Hmm, sizes and messure are kind of each person's preference.
I try to add them to preference.
Anyway, I am getting back to these kind of late. The styles look different.

@hedayaty hedayaty closed this as completed Nov 2, 2014
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

No branches or pull requests

2 participants