Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxzc committed Feb 14, 2018
1 parent 577009a commit 4c92bbc
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 31 deletions.
14 changes: 7 additions & 7 deletions Fits.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"mode": "active",

/*
scope is a key word to determine the accent color.
'scope' is a keyword to determine the accent color.
You can open .tmTheme file to check which scope is avaliable.
You can open .tmTheme file(the color scheme you are using)
to check which scope is avaliable.
For example:
<dict>
<key>scope</key>
Expand All @@ -21,19 +22,18 @@
<string>#1D577D</string>
</dict>
</dict>
The key 'scope' has string 'string', so we can use 'string' as a key word,
The key 'scope' has <string> 'string', so we can use 'string' as a key word,
then this plugin will choose the following 'foreground' as accent color.
Since each color scheme has different 'foreground' color for same scope,
choose different scope wii still obtain adaptability.
replacing scope wii still obtain adaptability.
*/
"scope": "function",

/*
You can set up accent color directly.
Format: "#abc" or "#abcdef"
A few color scheme file can't be resolved properly, then you can set up
this option to determine accent color compulsorily.
A few color schemes can't be resolved properly, then you can set up
this option to determine an accent color compulsorily.
*/
"accent": ""
}
16 changes: 7 additions & 9 deletions Fits.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
{
"class": "sidebar_tree",
"layer0.opacity": 1,
"row_padding": [8, 4],
"row_padding": [6, 2],
"indent": 10,
"indent_offset": 10,
"indent_offset": 8,
"indent_top_level": false,
"dark_content": true,
"spacer_rows": false
Expand Down Expand Up @@ -40,12 +40,11 @@
{ // headline
"class": "sidebar_heading",
"font.size": 13,
"font.bold": true
"font.bold": false
},
{
"class": "sidebar_labexl",
"class": "sidebar_label",
"font.size": 12,
"font.face": "",
"font.bold": false
},
{
Expand All @@ -61,7 +60,7 @@
{ // open file close button
"class": "close_button",
"layer0.draw_center": false,
"layer0.inner_margin": [3, 0, 0, 0],
"layer0.inner_margin": [6, 0, 0, 0],
"layer0.opacity": 0,
"content_margin": [8, 8]
},
Expand Down Expand Up @@ -102,7 +101,6 @@
},
{ // tab label
"class": "tab_label",
"font.face": "Aria",
"font.size": 12,
"font.italic": false,
"font.bold": false
Expand Down Expand Up @@ -384,13 +382,13 @@
{
"class": "panel_button_control",
"layer0.texture": "Theme - Default/common/dark/panels_button.png",
"layer0.opacity": { "target": 0.6, "speed": 4.0, "interpolation": "smoothstep" },
"layer0.opacity": { "target": 0.9, "speed": 4.0, "interpolation": "smoothstep" },
"content_margin": [12, 11]
},
{
"class": "panel_button_control",
"attributes": ["hover"],
"layer0.opacity": { "target": 0.3, "speed": 4.0, "interpolation": "smoothstep" },
"layer0.opacity": { "target": 1.0, "speed": 4.0, "interpolation": "smoothstep" },
},
{
"class": "status_container",
Expand Down
43 changes: 28 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Theme - Fits
An adaptive flat theme based on [SyncedSidebarBg](https://packagecontrol.io/packages/SyncedSidebarBg).

I spent two days rewriting and cleaning up code T T.

Wish u enjoy it!

### Preview
Expand All @@ -16,8 +14,8 @@ Wish u enjoy it!
- Adaptive Flat UI
- Adapt to almost all color schemes
- Immediate effect after you change color scheme
- Accent Color got from current color scheme
- Customize accent color
- Accent color got from current color scheme
- Customizable accent color

### Installation
#### Download
Expand All @@ -38,9 +36,7 @@ or Add following code into `Preferences -> Settings - User`:

### Customization

#### 1. File Icons
**File Icons**

#### File Icons
Please install [A File Icon](https://packagecontrol.io/packages/A%20File%20Icon) to get more file-specific icons.

**Adaptation**
Expand All @@ -50,26 +46,39 @@ Make icons being adaptive by adding following code into `Preferences -> Package
```json
"color": "#fff",
```
#### 2. Color Settings
#### Color Settings

Although this theme can handle most of color schemes, there are still a few can't be recognized. In case, you can configure colors by yourself. You can get detailed information in the setting file. Open `Preferences -> Package Settings -> Theme - Fits`:
Although this theme can handle most of color schemes, there are still a few can't be resolved. In case, you can configure colors by yourself. You can get detailed information in `Preferences -> Package Settings -> Theme - Fits`:

```json
// scope is a key word to determine the accent color.
"scope": "function",

// Set up an accent color directly.
"accent": "#abcdef"
// scope is a key word to determine the accent color.
"scope": "function",
// Set up an accent olor directly.
"accent": "#abcdef"
```

#### 3. Screen Resolution
#### Modify Theme

1. install [PackageResourceViewer](https://packagecontrol.io/packages/PackageResourceViewer)
2. open `quick panel`, search `open source`, enter
3. search `theme - fits`, enter
4. select `Fits.sublime-theme`, it will open this file
5. now you can modify it by yourself.

You can check the official docs -> [Documentation Themes](http://www.sublimetext.com/docs/3/themes.html)

#### Screen Resolution

If your screen size is larger than 100% (like my win laptop is 2560x1440 and I use 200%)

You can edit `Fits.sublime-theme` file: replace all `.png` with `@2x.png`, it may works.

### Changelog

1.1.3:

[FIX] font display

1.1.2:

[FIX] clear debug message
Expand Down Expand Up @@ -115,3 +124,7 @@ Based on [SyncedSidebarBg](https://packagecontrol.io/packages/SyncedSidebarBg) b
if you have any idea or found bug, please let me know:
- Github: [Issues](https://github.com/xxxzc/themefits/issues)
- Gmail: xxxzcwork@gmail.com



Sorry for my poor English.

0 comments on commit 4c92bbc

Please sign in to comment.