GithubHelp home page GithubHelp logo

elementary / stylesheet Goto Github PK

View Code? Open in Web Editor NEW
321.0 31.0 75.0 6.84 MB

The GTK Stylesheet for elementary OS

Home Page: https://elementary.io

License: GNU General Public License v3.0

Meson 1.23% Python 0.16% SCSS 98.60%
stylesheets desktop-environment gtk-stylesheet css gtk sass meson hacktoberfest

stylesheet's Introduction

Stylesheet

Translation status

The GTK Stylesheet for elementary OS

Installation

You'll need the following dependencies:

  • meson
  • sassc

Run meson to configure the build environment. To install, use ninja install.

meson build --prefix=/usr
cd build
ninja install

Run ninja clean before building the stylesheets a second time. Otherwise the already built stylesheets will not be overriden.

ninja clean
ninja install

stylesheet's People

Contributors

1280px avatar alice-mkh avatar bagjunggyu avatar benmorant avatar cassidyjames avatar comradekingu avatar danirabbit avatar dartdeadia avatar davidmhewitt avatar dennis1248 avatar elementarybot avatar fakelog avatar hugok79 avatar hutspotmuts avatar ihorhordiichuk avatar lainsce avatar lenemter avatar marcin-serwin avatar meisenzahl avatar micahilbery avatar nathanbnm avatar norwayfun avatar p-bo avatar petrichor-494 avatar queeup avatar ryonakano avatar tintou avatar tomiohl avatar weblate avatar yarons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stylesheet's Issues

contents of gtk-3.0/apps.css directly contradicts stated project purpose

from the README:

The aim of style classes should be to be generic across applications. If an application needs a unique style, it should be bundled with that application.

This creates all kinds of issues when elementary apps are used with GTK themes other than this one (for example on distributions where the elementary theme is unavaible / broken due to the incompatibility with GTK3 > 3.18).

Ugly style

Headers and toolboxs in some apps began to look so bad with last stylesheet updates.
pasted_image_at_2017_01_10_01_44_am
pasted_image_at_2017_01_10_01_45_am
pasted_image_at_2017_01_10_01_46_am

Error infobar text has very low contrast

Not fun to read. Error messages don't need to be the funnest thing, but they need to be readable.

calc infobar error 4

Edit: wait, is it supposed to look like this? (from the HIG)

newer style error infobar
Was this implemented or is it just a mockup?
It's definitely better, contrast-wise, although I still think white text on the red would probably be best.

Make the application's titlebar square when maximized

Have the developers thought of making the titlebar of the application square (border-radius: 0) when maximized? It would make use of the empty space left by the round-ish border. If this has already been thought, why it wasn't implemented? Is it a good design choice?

image

Warnings about changed selectors and missing units

Gtk+ 3.22 changed some selectors and we get now warnings for them:
icon-shadow: is now -gtk-icon-shadow:
prelight is now hover
-gtk-image-effect is now -gtk-icon-effect
insensitive is now disabled

it is now mandatory to define a font in css.

.action-bar .title {
    font: Bold 11;
}

for example. A solution is to define:

.action-bar .title {
    font-weight: bold;
    font-size: 11pt;
}

Make the csd header of non-gtk3 maximized windows smaller

I'm using the latest version of elementary theme from git and I've noticed that when i maximize a gtk3 window, it's headerbar gets a bit smaller (reducing inner padding). Is it possible to make non-gtk3 headerbars/titlebars do the same?

Color of sidebar font provides poor contrast

The color of sidebar font provides poor contrast and is often frustrating to read on non-HiDPI screens.

Elementary OS:
screen shot 2017-07-29 at 12 56 48 am

Elementary OS vs. macOS (under default setting for both):
screen shot 2017-07-29 at 1 13 57 am

Window size includes shadow [$15] [$15 awarded]

In a GTK+ 3.22 environment the window dimensions appear to include the shadow of the window. Thus a window can be brought to the foreground by clicking its shadow and the resize controls remain far beyond the edge of the window.

Note how the resize cursor is active for Slack far past the edge of the window:

screenshot from 2017-03-23 21-47-45

It seems to be worse for Qt and fake native apps (electron) like Slack.


There is a bounty on this issue on Bountysource


The $15 bounty on this issue has been claimed at Bountysource.

[$15] Extra Margin in GtkPaned [$15]

Currently we get a Border around GtkPaned windows (8px right and bottom)

Relevant screenshot:
bildschirmfoto von 2017-01-23 20 59 52

This can be fixed if we remove that margin in gtk-widgets.css. But i have no idea what was the reason in the first place we defined it like that


Did you help close this issue? Go claim the $15 bounty on Bountysource.

Dark variant: Missing "insensitive" style for buttons in headerbar

Haguichi uses dark variant by default. When disconnected, the "Add", "Refresh" and "Search" buttons in the headerbar are disabled/grayed-out/insensitive. In elementary's dark theme variant insensitive buttons are colored white, which makes them seem active instead (more so than the actual sensitive buttons). The normal (light) theme variant does not have this problem.

elementary-header-bars

Glitch wallpaper

After log off and loging in again, wallpaper get a glitch style as some video problem.

Space between items in wingpanel

Hi!
I really enjoy using elementary OS, design is very much refreshing. I would like make some modifications, but don't know where should I look. The space between items in "tray" is very big without reason.

selection_007

How can I change that? (what .css file and where should I change padding/margin?)
Thanks!

Don't hardcode colors for .card

At the moment we're hard coding background-color. Instead this should use @base_color and @bg_color for .card and .card.collapsed respectively.

This makes the .card classes usable in the dark stylesheet

No styling for .monospace

Apparently Gtk.TextView can have a monospace property, which just adds .monospace. We should handle setting the font in the stylesheet so that property works as expected,

i.e.

.monospace {
	font-family: monospace;
}

Too small font size for CJK (Chinese, Japanese and Korean) interface

CJK characters have many vertical and horizontal strokes in one character. It might be as simple as only one veritcal or horizontal stroke like 一丨, or as complex as something like 轟麤龘.

Small font size are almost unable to read easily with the default settings. CJK people usually expect font size 12 as the general good-reading and comfortable one.

The font size 11 is bearable as the lower boundary of legibility for fluent reading.
The font size less than or equal to 10 is not recommended, and can only be accepted in few situations if there is still a need to have small size font displayed.

Sorry that I don't know much about programming, but I found you specify the size of the text body as 12 already. [1] The font size still looks small than other desktop environments, such as GNOME shell (on my Fedora platform) which uses size 11 as the default one. There might be some problems in there.

Please take this problem into consideration! This will help you do a better internationalization job and be more friendly in East Asia. :)

  1. http://old.elementary.io/journal/typography-gtk3

Gtk.StackSwitcher in a headerbar is missing border

Hi there, in Gtk applications that use StackSwitcher with icons, the apearance is quite odd, as you can see in the attachment, it misses the borders and the selected icon has a ellipsis around it. Perhaps it should look like Granite ModeButton? I don't know if this as to do with a proper Gtk style class or something...

Using Gtk.StackSwitcher:
stack

Granite.ModeButton:
modal

Tested in Elementary OS Loki 0.4 with GTK 3.18

Dark variant: Missing "suggested-action" style for buttons in actionbar

Haguichi uses dark variant by default. The next release will be using an actionbar for all action buttons in the bottom of the sidebar. The "Go Online" button uses the class "suggested-action". In the dark theme variant this style is missing for buttons inside an actionbar.

elementary-action-bars

The class "destructive-action" on the other hand does seem to work for actionbar buttons in dark variant.

openbox

Hi I would like theme for openbox

Menu-bar in dark theme not quite dark

The menu-bar (I stand to be corrected for the name of this UI element) doesn't match the dark theme and it becomes fairly out of place for apps that have a dark palette.

screenshot from 2016-09-27 21 46 22

I'd love to fix it, however, I'm not too clued up on the layout naming of elementary's theming (and of GTK/metacity in general really). Some pointers would be great 👍

Add a way for apps to request rounded bottom corners

Apps like Music and Calculator can have rounded corners because they have predictable widgets at the bottom.

We should do this via a class that allows apps to indicate they can be rounded instead of targeting specific apps in the stylesheet

Support .flat headerbars

Flat headerbars should have no bottom border, no gradient, and use the app's default background color

You should be able to do something like so by adding the .flat class:
headerbar

Scrollbars don't have a minimum size

This is the current scrollbar. It isnt there at all and its nearly impossible to click it - 1px grab.

bildschirmfoto von 2017-01-23 12 28 10

The problem lies in my opinion on trough css definitions - they are not used in Adwaita. And we can now define slider-width with

slider {
    min-width: 2px;
}

GTK+ > 3.18 not supported

GTK 3.20 has been released on 2016-03-21, and that release broke the elementary theme. The latest stable ubuntu (yakkety+) and fedora (24+) releases provide only GTK+ from the 3.20 series (or newer), and thus the elementary theme is not supported / working correctly on those leading linux distributions.

Providing support for the theming API of GTK 3.20 / 3.22 looks like a win to me, since GTK 3.22 will be maintained as the last stable GTK3 branch for about 3 years (https://blog.gtk.org/2016/09/01/versioning-and-long-term-stability-promise-in-gtk/).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.