apex / apex-ui-slim Goto Github PK
View Code? Open in Web Editor NEWApex monochrome Atom theme UI (slim variant)
License: MIT License
Apex monochrome Atom theme UI (slim variant)
License: MIT License
I use the julia-client
package, which provides a custom tool bar (using the API provided by the tool-bar package). When the tool bar is on the left or right, the top icon is cropped (only is very bottom is visible):
If the tool bar is on the top, only the very top of icons is visible. The rest is hidden by the tabs. If the tool bar is on the bottom, only the rightmost icons are visible. The others are hidden by the tree view. I'm not sure what settings need to be adjusted to fix this.
In apex-ui-slim/index.less
:
Starting from Atom v1.13.0, the contents of atom-text-editor
elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host
and ::shadow
pseudo-selectors, and prepend all your syntax selectors with syntax--
. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:
atom-text-editor[mini].is-focused::shadow .cursor
=> atom-text-editor[mini].is-focused.editor .cursor
atom-text-editor[mini] .placeholder-text, atom-text-editor[mini]::shadow .placeholder-text
=> atom-text-editor[mini] .placeholder-text, atom-text-editor[mini].editor .placeholder-text
atom-text-editor[mini] .selection .region, atom-text-editor[mini]::shadow .selection .region
=> atom-text-editor[mini] .selection .region, atom-text-editor[mini].editor .selection .region
atom-text-editor[mini] .cursor, atom-text-editor[mini]::shadow .cursor
=> atom-text-editor[mini] .cursor, atom-text-editor[mini].editor .cursor
Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.
Nearly the entire tab bar disappears (except a small sliver of the icons) in macOS with the no-title-bar package when using the native macOS fullscreen mode.
macOS Sierra (10.12.5)
Atom 1.17.2
apex-ui-slim at commit 81f8ac4
I had an issue with the treeview running into my stop lights. (example)
I fixed it with
.tree-view{
margin-top: 25px;
}
Worthy of a PR?
HOT DAMN THIS IS HOT! AWESOME WORK!
One issue from my side, and it's more an annoyance than anything else at the moment.
I installed the apex-ui-slim
along with the apex-syntax
. I also enabled custom toolbars, but now I see the following:
If I install the no-title-bar
then the tabs get all compressed and ugly:
System: macOS Sierra 10.12.2
Atom: 1.13.0 x64
Hey ๐
I have been putting fixes in my custom stylesheet to help with some common problems I have been experiencing. It helps with #10 and #11
I thought it worth sharing here. I will keep updating it as I find more issues/fixes. Perhaps after a while we could consider patching your plugin with some of these.
/**
* FIXES FOR APEX-UI-SLIM AND APEX-SYNTAX PLUGINS
* Last Updated: 2017/01/23 12:57 UTC+00:00
*/
// Drops the tree-view on left so that the OS X controls aren't overlayed.
atom-panel.tool-panel.panel-left .tree-view-scroller {
margin-top: 30px;
}
// We dont't want to see the title bar.
atom-panel.panel-header .title-bar {
visibility: hidden;
}
// Fixes Modals as their widths vary drastically and tend to shift as you
// type input, so preferring a fixed width.
.tree-view-dialog,
.modal.overlay > .select-list {
width: 80vw;
}
// The highlighted/selected text is too invisible to see.
.command-palette .list-group .character-match {
color: #000;
}
// Fix the highlighting of items in the tree-view, as the colors change,
// especially with git status it's easier to use an underline to indicate
// the currently selected item.
.tree-view .directory.selected > .header,
.tree-view .list-item.selected {
color: #212529;
text-decoration: underline;
}
// Show currently selected item in select lists.
.select-list .list-group li.selected {
border-left: solid 1px #212529;
}
// We want our wrap guides still. :)
atom-text-editor .wrap-guide, atom-text-editor .wrap-guide {
background-color: #edecec;
}
// Fixes text highlight on modal popups
.modal atom-text-editor .highlight > .region {
background: #edecec !important;
}
The above works well with the apex-ui-slim
and apex-syntax
plugins, along with the atom setting to allow custom titlebars enabled:
APM is not letting me publish. Until then you might have to clone and apm link
When using find and attempting to highlight text the highlight is impossible to see.
// ===============================================================
// https://github.com/apex/apex-ui-slim/blob/81f8ac49c0b1632e459a7d04a6febbdb3a39261c/styles/open-color.less#L16-L30
@oc-gray-list: #f8f9fa, #f1f3f5, #e9ecef, #dee2e6, #ced4da, #adb5bd, #868e96, #495057, #343a40, #212529;
@oc-gray-0: extract(@oc-gray-list, 1);
@oc-gray-1: extract(@oc-gray-list, 2);
@oc-gray-2: extract(@oc-gray-list, 3);
@oc-gray-3: extract(@oc-gray-list, 4);
@oc-gray-4: extract(@oc-gray-list, 5);
@oc-gray-5: extract(@oc-gray-list, 6);
@oc-gray-6: extract(@oc-gray-list, 7);
@oc-gray-7: extract(@oc-gray-list, 8);
@oc-gray-8: extract(@oc-gray-list, 9);
@oc-gray-9: extract(@oc-gray-list, 10);
// ===============================================================
// @balupton's things
// needed for the git gutter variables
@import "syntax-variables";
// https://github.com/atom/git-diff/pull/19
atom-workspace.theme-apex-ui-slim atom-text-editor,
atom-text-editor {
.gutter .line-number {
&.git-line-modified {
background: @syntax-color-modified;
color: white;
}
&.git-line-added {
background: @syntax-color-added;
color: white;
}
&.git-line-removed {
background: @syntax-color-removed;
color: white;
}
}
}
// apex ui modifications
// https://github.com/apex/apex-ui-slim/issues/9
atom-workspace.theme-apex-ui-slim {
// fix padding on tab bar
.tab-bar {
margin: 0;
}
.tree-view-resizer {
border: 0;
}
// line numbers
atom-text-editor {
// hide line numbers
.gutter {
.line-number {
opacity: 1;
transition: color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
background: @base-background-color;
color: @base-background-color;
}
}
// show line numbers when gutter hover or selection
.gutter {
.line-number.cursor-line:not(.cursor-line-no-selection) {
color: @oc-gray-5;
}
&:hover {
.line-number {
color: @oc-gray-4;
}
.line-number.cursor-line:not(.cursor-line-no-selection) {
color: @oc-gray-7;
}
}
}
// change modification line numbers to hide/show accordingly
.gutter .line-number {
&.git-line-modified {
color: @syntax-color-modified;
}
&.git-line-added {
color: @syntax-color-added;
}
&.git-line-removed {
color: @syntax-color-removed;
}
}
.gutter .line-number.cursor-line:not(.cursor-line-no-selection),
.gutter:hover .line-number {
&.git-line-modified,
&.git-line-added,
&.git-line-removed {
color: white;
}
}
}
}
Standard code:
Code with changes:
Code with highlight:
Code with highlight and hover on gutter:
from balupton/dotfiles@5af8ede and https://github.com/balupton/dotfiles/blob/5af8ede663d5e5e975a7b0646e032e3d9d83aff7/.atom/styles.less
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.