Skip to content

Commit ad52331

Browse files
committed
First Commit
0 parents  commit ad52331

21 files changed

+619
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Mach50
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Pydle
2+
Pydle is an Atom theme made to mimic the default python IDLE.
3+
4+
> Similar syntax highlighting is still in development.
5+
6+
## Warning:
7+
This theme sacrifices a lot of the basic editor ui in order get the authentic python IDLE look, so you will have to use the command-palette a lot.

index.less

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// UI Theme
2+
// -------------------
3+
4+
// This is the main file that imports all the Less files from the `/styles` directory.
5+
6+
// For more infos about creating themes, check out:
7+
// http://flight-manual.atom.io/hacking-atom/sections/creating-a-theme
8+
9+
@import "styles/ui-variables";
10+
11+
@import "styles/base";
12+
@import "styles/buttons";
13+
@import "styles/editor";
14+
@import "styles/find-and-replace";
15+
@import "styles/git";
16+
@import "styles/key-binding";
17+
@import "styles/lists";
18+
@import "styles/panels";
19+
@import "styles/progress";
20+
@import "styles/sites";
21+
@import "styles/status-bar";
22+
@import "styles/tabs";
23+
@import "styles/text";
24+
@import "styles/tooltips";
25+
@import "styles/tree-view";

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "pydle",
3+
"theme": "ui",
4+
"version": "0.0.0",
5+
"description": "An Atom theme made to mimic the python IDLE.",
6+
"keywords": [
7+
"ui",
8+
"theme"
9+
],
10+
"repository": "https://github.com/MasterMach50/Pydle-Atom-Theme",
11+
"engines": {
12+
"atom": ">=1.0.0 <2.0.0"
13+
}
14+
}

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- "."

styles/base.less

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
// Base
3+
// -------------------
4+
5+
// Used for global styles
6+
// Or to override certain Atom core styles
7+
8+
// -------------------
9+
10+
11+
body {
12+
font-size: @font-size;
13+
color: @text-color;
14+
background-color: @app-background-color;
15+
}
16+
17+
atom-pane {
18+
border-right: 1px solid @base-border-color;
19+
&:last-child {
20+
border-right: none;
21+
}
22+
}

styles/buttons.less

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
// Buttons
3+
// -------------------
4+
5+
// Overrides: atom/atom/static/buttons.less
6+
7+
8+
.btn {
9+
color: lighten(@text-color, 6%);
10+
background-color: @button-background-color;
11+
&:hover,
12+
&:focus {
13+
color: @text-color-highlight;
14+
background-color: @button-background-color-hover;
15+
}
16+
&:active {
17+
color: fade(@text-color-selected, 66%);
18+
background-color: darken(@button-background-color, 2%);
19+
}
20+
&.selected {
21+
color: @text-color-selected;
22+
background-color: @button-background-color-selected;
23+
}
24+
&:focus,
25+
&:focus:active {
26+
outline: none;
27+
}
28+
}
29+
30+
31+
// Colored buttons -----------------------
32+
33+
.btn.btn-primary { .btn-color(@background-color-info); }
34+
.btn.btn-info { .btn-color(@background-color-info); }
35+
.btn.btn-success { .btn-color(@background-color-success); }
36+
.btn.btn-warning { .btn-color(@background-color-warning); }
37+
.btn.btn-error { .btn-color(@background-color-error); }
38+
39+
.btn-color(@bg) {
40+
color: @text-color-selected;
41+
background-color: @bg;
42+
&:hover,
43+
&:focus {
44+
background-color: lighten(@bg, 4%);
45+
}
46+
&:active {
47+
background-color: darken(@bg, 4%);
48+
}
49+
&.selected {
50+
background-color: lighten(@bg, 4%);
51+
}
52+
&.selected:focus,
53+
&.selected:hover {
54+
background-color: lighten(@bg, 8%);
55+
}
56+
}
57+
58+
59+
// Button Group -----------------------
60+
61+
.btn-group > .btn {
62+
border-color: hsla(0,0%,0%,.2);
63+
}

styles/editor.less

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
// Mini Editor
3+
// -------------------
4+
5+
// Mini Editors are the "text inputs" used in find+replace or in the settings.
6+
7+
atom-text-editor {
8+
font-weight: 900;
9+
}
10+
11+
atom-text-editor {
12+
background-color: white;
13+
}
14+
15+
atom-text-editor .gutter .line-number.cursor-line {
16+
color: @pydle-line-number-color;
17+
}
18+
19+
atom-text-editor .gutter-container {
20+
border-right: 1px @pydle-line-number-color solid;
21+
}
22+
23+
atom-text-editor .scroll-view {
24+
margin-left: 1%;
25+
}
26+
27+
atom-text-editor .line-number .icon-right {
28+
display: none;
29+
}
30+
31+
atom-text-editor[mini] {
32+
padding-left: @component-padding/2;
33+
color: @text-color;
34+
border-radius: @component-border-radius;
35+
background-color: @input-background-color;
36+
37+
&.is-focused {
38+
background-color: darken(@input-background-color, 5%);
39+
}
40+
41+
.placeholder-text {
42+
color: @text-color-subtle;
43+
}
44+
.selection .region {
45+
background-color: @background-color-selected;
46+
}
47+
}

styles/find-and-replace.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
// Find + Replace
3+
// -------------------
4+
5+
// Find and replace in the current buffer or across the entire project.
6+
// Overrides: atom/find-and-replace
7+
8+
.find-and-replace {
9+
border-top: 1px solid @base-border-color;
10+
}

styles/git.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
// Git
3+
// -------------------
4+
5+
// Used to color git status
6+
7+
.status { color: @text-color; }
8+
.status-added { color: @text-color-success; } // green
9+
.status-ignored { color: @text-color-subtle; } // faded
10+
.status-modified { color: @text-color-warning; } // orange
11+
.status-removed { color: @text-color-error; } // red
12+
.status-renamed { color: @text-color-info; } // blue

0 commit comments

Comments
 (0)