Skip to content

Commit

Permalink
UI (#159)
Browse files Browse the repository at this point in the history
* Prepare new themes

* New color format

* Simplified ui colors

* Improved shadows and borders

* Better separators

* Tabs

* Adjust tabs to separators

* Remove redundand files

* Correct invisibles color in widgets

* Remove sublime text 2 themes

* New version

* Prepare new version release
  • Loading branch information
Ike Ku authored Dec 9, 2017
1 parent 6d5666f commit 57a2aa3
Show file tree
Hide file tree
Showing 49 changed files with 1,228 additions and 7,551 deletions.
19 changes: 19 additions & 0 deletions Preferences.sublime-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// ayu theme: Use native titlebars on macOs
"ui_native_titlebar": false,

// ayu theme: Show separators between panels
"ui_separator": false,

// ayu theme: Use smaller font size for UI
"ui_font_size_small": false,

// ayu theme: Use Source Code Pro as UI font
"ui_font_source_code_pro": false,

// ayu theme: Use Roboto Mono as UI font
"ui_font_roboto_mono": false,

// ayu theme: Display wider scrollbars
"ui_wide_scrollbars": false
}
46 changes: 10 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![ayu](https://i.imgur.com/lt4pIAI.png)
![ayu](https://i.imgur.com/akLUOXg.png)

`ayu` is a simple theme with bright colors and comes in three versions — *dark*, *mirage* and *light* for all day long comfortable work.

Expand All @@ -12,33 +12,31 @@

### Screenshots

<h6 align='center'>Light with <code>ui_separator</code> option off</h6>
<h6 align='center'>Light with <code>ui_separator</code> option on</h6>

![Light](https://i.imgur.com/DbWFq76.png)
![Light](https://i.imgur.com/pQQfIio.png)

---


<h6 align='center'>Mirage with <code>ui_separator</code> option on</h6>
<h6 align='center'>Mirage with <code>ui_separator</code> option off</h6>

![Mirage](https://i.imgur.com/BOYGmHf.png)
![Mirage](https://i.imgur.com/KYXJbBu.png)

---

<h6 align='center'>Dark with <code>ui_separator</code> option off</h6>
<h6 align='center'>Dark with <code>ui_separator</code> option on</h6>

![Dark](https://i.imgur.com/pmkHtQJ.png)
![Dark](https://i.imgur.com/lo8XBTr.png)

### Settings

```js
"ui_native_titlebar": true, // use native titlebars on macOs
"ui_separator": true, // separators between panels
"ui_font_size_small": true, // smaller UI font size(sidebar, statusbar etc)
"ui_big_tabs": true, // increased tab height
"ui_fix_tab_labels": true, // to fix tab labels if they look not right
"ui_font_source_code_pro": true, // use Source Code Pro (https://fonts.google.com/specimen/Source+Code+Pro) as UI font
"ui_font_default": true, // use Sublime's default UI font
"ui_font_roboto_mono": true, // use Roboto Mono (https://fonts.google.com/specimen/Roboto+Mono) as UI font
"ui_wide_scrollbars": true, // wider scrollbars
```

Expand Down Expand Up @@ -99,32 +97,8 @@ For dark theme:

### Sublime Text 2

_Sublime Text 2 version may have some glitches, if you notice something, please file an issue._

Add this lines to your user settings *Preferences > Setting - User*:

For light theme:

```js
"theme": "ayu-light2.sublime-theme",
"color_scheme": "Packages/ayu/ayu-light.tmTheme",
```

For mirage theme:

```js
"theme": "ayu-mirage2.sublime-theme",
"color_scheme": "Packages/ayu/ayu-mirage.tmTheme",
```

For dark theme:

```js
"theme": "ayu-dark2.sublime-theme",
"color_scheme": "Packages/ayu/ayu-dark.tmTheme",
```

**NOTE:** Restart Sublime Text after activation of the theme to avoid any glitches.
ayu no longer supports Sublime Text 2. But you still can download
and install manually [previous version](https://github.com/dempfi/ayu/releases/tag/3.2.2).

### Related projects and ports

Expand Down
10 changes: 3 additions & 7 deletions activation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# -*- coding: utf-8 -*-

"""
Material Theme Activation
"""

import sublime
import sublime_plugin
import functools
Expand Down Expand Up @@ -66,7 +62,7 @@ def display_list(self, themes):
self.initial_color_scheme = get_color_scheme()
self.initial_ui_theme = get_ui_theme()

quick_list = [theme for theme in self.themes]
quick_list = [theme.replace("-", " ") for theme in self.themes]
self.quick_list = quick_list

self.window.show_quick_panel(quick_list, self.on_done, on_highlight=self.on_highlighted)
Expand All @@ -88,10 +84,10 @@ def on_done(self, index):
activate_ui_theme(ui_theme)

def _quick_list_to_scheme(self, index):
return 'Packages/ayu/%s.tmTheme' % self.quick_list[index]
return 'Packages/ayu/%s.tmTheme' % THEMES[index]

def _quick_list_to_theme(self, index):
return '%s.sublime-theme' % self.quick_list[index]
return '%s.sublime-theme' % THEMES[index]

def run(self):
self.display_list(THEMES)
Binary file modified assets/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dirty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/input-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/overlay-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/overlay-border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/overlay-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tree-highlight-separators.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tree-highlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 57a2aa3

Please sign in to comment.