Skip to content

Commit

Permalink
Add and change themes
Browse files Browse the repository at this point in the history
  • Loading branch information
delington committed May 30, 2023
1 parent 7156d29 commit 6c95897
Show file tree
Hide file tree
Showing 13 changed files with 733 additions and 9 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ The Double Commander Theme Changer is a Python application that allows you to ea
| <img src="themes/dark_theme.png" height="230" width="400"/> | <img src="themes/light_theme.png" height="230" width="400"/> |
| `Purple rain` | `Minty fresh` |
| <img src="themes/purple_rain.png" height="230" width="400"/> | <img src="themes/minty_fresh.png" height="230" width="400"/> |
| `Sunlit pyramids` | `Saffron sunset` |
| <img src="themes/sunlit_pyramids.png" height="230" width="400"/> | <img src="themes/saffron_sunset.png" height="230" width="400"/> |
| `Olive branch` | `Saffron sunset` |
| <img src="themes/olive_branch.png" height="230" width="400"/> | <img src="themes/saffron_sunset.png" height="230" width="400"/> |
| `Ruby velvet` | `Deep azure` |
| <img src="themes/ruby_velvet.png" height="230" width="400"/> | <img src="themes/deep_azure.png" height="230" width="400"/> |
| `Crimson elegance` | `Blue abyss` |
| <img src="themes/crimson_elegance.png" height="230" width="400"/> | <img src="themes/blue_abyss.png" height="230" width="400"/> |
| `Royal purple` | `Bronze delight` |
| <img src="themes/royal_purple.png" height="230" width="400"/> | <img src="themes/bronze_delight.png" height="230" width="400"/> |

## Usage

1. Launch the Double Commander Theme Changer by running the following command:

```javascript
python main.py
python main.py (made with python3 version 3.11.3)
```

2. The app will display a menu with theme options. It will look like this:
Expand Down
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def main():
list_item_name = f"{i}. {theme['name']}"

if theme["name"] == last_applied_theme:
list_item_name += "⭐"
list_item_name += "⭐*"
print(list_item_name)

theme_size = len(theme_list)
Expand All @@ -79,7 +79,7 @@ def main():
for i in range(theme_size):
if theme_input - 1 == i:
theme_option = theme_list[i]
print("✔️ ", theme_list[i]["name"], "selected.")
print("✔️ *", theme_list[i]["name"], "selected.")
break

while True:
Expand All @@ -96,7 +96,7 @@ def main():
if (apply_input == 1):
xml_manager.apply_changes(db_folder_location, theme_option["file_path"])
print(SEPARATOR_LINE)
print(f"⭐ ⭐ ⭐ {theme_option['name']} applied. ⭐ ⭐ ⭐")
print(f"*** {theme_option['name']} applied. ***")
last_applied_theme = theme_option["name"]
break

Expand Down
26 changes: 23 additions & 3 deletions themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
"file_path": "themes/default_theme.xml",
"picture_path": "themes/default_theme.png"
},
{
"name": "Blue abyss",
"file_path": "themes/blue_abyss.xml",
"picture_path": "themes/blue_abyss.png"
},
{
"name": "Bronze delight",
"file_path": "themes/bronze_delight.xml",
"picture_path": "themes/bronze_delight.png"
},
{
"name": "Crimson elegance",
"file_path": "themes/crimson_elegance.xml",
"picture_path": "themes/crimson_elegance.png"
},
{
"name": "Dark theme",
"file_path": "themes/dark_theme.xml",
Expand All @@ -29,6 +44,11 @@
"file_path": "themes/purple_rain.xml",
"picture_path": "themes/purple_rain.png"
},
{
"name": "Royal purple",
"file_path": "themes/royal_purple.xml",
"picture_path": "themes/royal_purple.png"
},
{
"name": "Ruby velvet",
"file_path": "themes/ruby_velvet.xml",
Expand All @@ -40,8 +60,8 @@
"picture_path": "themes/saffron_sunset.png"
},
{
"name": "Sunlit pyramids",
"file_path": "themes/sunlit_pyramids.xml",
"picture_path": "themes/sunlit_pyramids.png"
"name": "Olive branch",
"file_path": "themes/olive_branch.xml",
"picture_path": "themes/olive_branch.png"
}
]
Binary file added themes/blue_abyss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
175 changes: 175 additions & 0 deletions themes/blue_abyss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<root>
<Colors>
<UseCursorBorder>False</UseCursorBorder>
<CursorBorderColor>-2147483635</CursorBorderColor>
<UseFrameCursor>False</UseFrameCursor>
<Foreground>16777215</Foreground>
<Background>4070917</Background>
<Background2>5187334</Background2>
<Cursor>-2147483635</Cursor>
<CursorText>-2147483634</CursorText>
<Mark>255</Mark>
<InactiveCursor>-2147483645</InactiveCursor>
<InactiveMark>128</InactiveMark>
<UseInvertedSelection>False</UseInvertedSelection>
<UseInactiveSelColor>False</UseInactiveSelColor>
<AllowOverColor>True</AllowOverColor>
<gBorderFrameWidth>1</gBorderFrameWidth>
<InactivePanelBrightness>100</InactivePanelBrightness>
<FreeSpaceIndicator>
<UseGradient>True</UseGradient>
<ForeColor>0</ForeColor>
<BackColor>16777215</BackColor>
</FreeSpaceIndicator>
<LogWindow>
<Info>8388608</Info>
<Error>255</Error>
<Success>32768</Success>
</LogWindow>
<FileFilters/>
<PathLabel>
<ActiveColor>-2147483635</ActiveColor>
<ActiveFontColor>-2147483634</ActiveFontColor>
<InactiveColor>-2147483633</InactiveColor>
<InactiveFontColor>-2147483630</InactiveFontColor>
</PathLabel>
</Colors>
<Layout>
<MainMenu>True</MainMenu>
<ButtonBar Enabled="True">
<FlatIcons>True</FlatIcons>
<ButtonHeight>24</ButtonHeight>
<IconSize>16</IconSize>
<ShowCaptions>False</ShowCaptions>
<ReportErrorWithCommands>False</ReportErrorWithCommands>
<FilenameStyle>0</FilenameStyle>
<PathToBeRelativeTo>%COMMANDER_PATH%</PathToBeRelativeTo>
<PathModifierElements>0</PathModifierElements>
</ButtonBar>
<MiddleBar Enabled="False">
<FlatIcons>True</FlatIcons>
<ButtonHeight>24</ButtonHeight>
<IconSize>16</IconSize>
<ShowCaptions>False</ShowCaptions>
<ReportErrorWithCommands>False</ReportErrorWithCommands>
</MiddleBar>
<DriveBar1>True</DriveBar1>
<DriveBar2>True</DriveBar2>
<DriveBarFlat>True</DriveBarFlat>
<DrivesListButton Enabled="False">
<ShowLabel>True</ShowLabel>
<ShowFileSystem>True</ShowFileSystem>
<ShowFreeSpace>True</ShowFreeSpace>
</DrivesListButton>
<SeparateTree>False</SeparateTree>
<DirectoryTabs>True</DirectoryTabs>
<CurrentDirectory>True</CurrentDirectory>
<TabHeader>True</TabHeader>
<StatusBar>True</StatusBar>
<CmdLine>True</CmdLine>
<LogWindow>False</LogWindow>
<TermWindow>False</TermWindow>
<KeyButtons>True</KeyButtons>
<InterfaceFlat>True</InterfaceFlat>
<DriveFreeSpace>False</DriveFreeSpace>
<DriveIndicator>False</DriveIndicator>
<ProgressInMenuBar>False</ProgressInMenuBar>
<PanelOfOperationsInBackground>True</PanelOfOperationsInBackground>
<HorizontalFilePanels>False</HorizontalFilePanels>
<ShortFormatDriveInfo>False</ShortFormatDriveInfo>
<UppercaseDriveLetter>False</UppercaseDriveLetter>
<ShowColonAfterDrive>False</ShowColonAfterDrive>
</Layout>
<Fonts>
<Main>
<Name>Tahoma</Name>
<Size>9</Size>
<Style>0</Style>
<Quality>1</Quality>
</Main>
<Editor>
<Name>Courier New</Name>
<Size>14</Size>
<Style>0</Style>
<Quality>0</Quality>
</Editor>
<Viewer>
<Name>Courier New</Name>
<Size>14</Size>
<Style>0</Style>
<Quality>0</Quality>
</Viewer>
<OptionsTree>
<Name>default</Name>
<Size>10</Size>
<Style>0</Style>
<Quality>0</Quality>
</OptionsTree>
<OptionsMain>
<Name>default</Name>
<Size>10</Size>
<Style>0</Style>
<Quality>0</Quality>
</OptionsMain>
<SearchResults>
<Name>default</Name>
<Size>10</Size>
<Style>0</Style>
<Quality>0</Quality>
</SearchResults>
<PathEdit>
<Name>default</Name>
<Size>8</Size>
<Style>0</Style>
<Quality>0</Quality>
</PathEdit>
<FunctionButtons>
<Name>default</Name>
<Size>8</Size>
<Style>0</Style>
<Quality>0</Quality>
</FunctionButtons>
<Log>
<Name>Courier New</Name>
<Size>12</Size>
<Style>0</Style>
<Quality>0</Quality>
</Log>
<ViewerBook>
<Name>default</Name>
<Size>16</Size>
<Style>1</Style>
<Quality>0</Quality>
</ViewerBook>
<Console>
<Name>Courier New</Name>
<Size>12</Size>
<Style>0</Style>
<Quality>0</Quality>
</Console>
<TreeViewMenu>
<Name>default</Name>
<Size>10</Size>
<Style>0</Style>
<Quality>0</Quality>
</TreeViewMenu>
</Fonts>
<Icons>
<Theme>dctheme</Theme>
<ShowHiddenDimmed>False</ShowHiddenDimmed>
<ShowMode>3</ShowMode>
<ShowOverlays>False</ShowOverlays>
<Size>16</Size>
<DiskSize>16</DiskSize>
<DiskAlpha>50</DiskAlpha>
<Exclude>False</Exclude>
<ExcludeDirs/>
<CustomIcons>0</CustomIcons>
<PixelsPerInch>96</PixelsPerInch>
<ShowInMenus Enabled="True">
<Size>16</Size>
</ShowInMenus>
<ShowButtonGlyphs>0</ShowButtonGlyphs>
<ToolSize>24</ToolSize>
</Icons>
</root>
Binary file added themes/bronze_delight.png
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 6c95897

Please sign in to comment.