Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn theme into Preference Pack #3

Merged
merged 6 commits into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 38 additions & 63 deletions user.cfg → Dracula/Dracula.cfg
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!-- vi: set ft=xml :-->
<!--
Dracula theme for FreeCAD: https://draculatheme.com

This file is intended to contain only the minimum configuration necessary for
the Dracula theme, note that to add colors and maintain minimalism you will
have to edit it manually.
-->
<FCParameters>

<FCParamGroup Name="Root">
<FCParamGroup Name="BaseApp">
<FCParamGroup Name="Preferences">
<FCParamGroup Name="Mod">
<FCParamGroup Name="Start">
<FCUInt Name="BackgroundColor1" Value="1331197183"/>
<FCUInt Name="BackgroundTextColor" Value="3180591615"/>
<FCUInt Name="PageColor" Value="673855231"/>
<FCUInt Name="PageTextColor" Value="3532384767"/>
<FCUInt Name="BoxColor" Value="1145527039"/>
<FCUInt Name="LinkColor" Value="1358593023"/>
<FCUInt Name="BackgroundColor2" Value="2141107711"/>
</FCParamGroup>
<FCParamGroup Name="Editor">
<FCUInt Name="Text" Value="4177064448"/>
<FCUInt Name="Bookmark" Value="2347367680"/>
<FCUInt Name="Breakpoint" Value="4283782400"/>
<FCUInt Name="Keyword" Value="4286170624"/>
<FCUInt Name="Comment" Value="1651680256"/>
<FCUInt Name="Block comment" Value="1651680256"/>
<FCUInt Name="Number" Value="3180591360"/>
<FCUInt Name="String" Value="4059728896"/>
<FCUInt Name="Character" Value="4278190080"/>
<FCUInt Name="Class name" Value="1358592768"/>
<FCUInt Name="Define name" Value="1358592768"/>
<FCUInt Name="Operator" Value="4177064448"/>
<FCUInt Name="Python output" Value="1651680256"/>
<FCUInt Name="Python error" Value="4283782400"/>
<FCUInt Name="Current line highlight" Value="1145526784"/>
</FCParamGroup>
<FCParamGroup Name="OutputWindow">
<FCUInt Name="colorText" Value="4177064703"/>
<FCUInt Name="colorLogging" Value="2347367935"/>
<FCUInt Name="colorWarning" Value="4290276607"/>
<FCUInt Name="colorError" Value="4283782655"/>
</FCParamGroup>
<FCParamGroup Name="View">
<FCUInt Name="BackgroundColor" Value="1145527039"/>
Expand All @@ -30,27 +35,21 @@ have to edit it manually.
<FCBool Name="Simple" Value="0"/>
<FCBool Name="Gradient" Value="1"/>
<FCBool Name="UseBackgroundColorMid" Value="0"/>
<FCBool Name="EnablePreselection" Value="1"/>
<FCBool Name="EnableSelection" Value="1"/>
<FCUInt Name="HighlightColor" Value="3180591615"/>
<FCUInt Name="SelectionColor" Value="2347367935"/>
<FCUInt Name="DefaultShapeColor" Value="3435973887"/>
<FCBool Name="RandomColor" Value="0"/>
<FCUInt Name="DefaultShapeLineColor" Value="421075455"/>
<FCInt Name="DefaultShapeLineWidth" Value="2"/>
<FCUInt Name="DefaultShapeVertexColor" Value="421075455"/>
<FCInt Name="DefaultShapePointSize" Value="2"/>
<FCUInt Name="BoundingBoxColor" Value="4294967295"/>
<FCUInt Name="AnnotationTextColor" Value="3402287871"/>
<FCInt Name="EditSketcherFontSize" Value="17"/>
<FCInt Name="SegmentsPerGeometry" Value="50"/>
<FCUInt Name="SketchEdgeColor" Value="4177064703"/>
<FCUInt Name="SketchVertexColor" Value="4177064703"/>
<FCUInt Name="EditedEdgeColor" Value="4294967295"/>
<FCUInt Name="EditedVertexColor" Value="4286170879"/>
<FCUInt Name="ConstructionColor" Value="2147483647"/>
<FCUInt Name="ExternalColor" Value="4290276607"/>
<FCUInt Name="FullyConstrainedColor" Value="16711935"/>
<FCUInt Name="FullyConstrainedColor" Value="1358593023"/>
<FCUInt Name="InternalAlignedGeoColor" Value="2998042623"/>
<FCUInt Name="FullyConstraintElementColor" Value="2161156351"/>
<FCUInt Name="FullyConstraintConstructionElementColor" Value="2410282495"/>
Expand All @@ -70,49 +69,25 @@ have to edit it manually.
<FCUInt Name="HiddenLineFaceColor" Value="4294967040"/>
<FCUInt Name="HiddenLineBackground" Value="4294967040"/>
</FCParamGroup>
<FCParamGroup Name="OutputWindow">
<FCUInt Name="colorText" Value="4177064703"/>
<FCBool Name="checkMessage" Value="1"/>
<FCBool Name="checkLogging" Value="0"/>
<FCBool Name="checkWarning" Value="1"/>
<FCBool Name="checkError" Value="1"/>
<FCBool Name="checkShowReportViewOnWarning" Value="1"/>
<FCBool Name="checkShowReportViewOnError" Value="1"/>
<FCBool Name="checkShowReportViewOnNormalMessage" Value="0"/>
<FCBool Name="checkShowReportViewOnLogMessage" Value="0"/>
<FCBool Name="checkShowReportTimecode" Value="1"/>
<FCUInt Name="colorLogging" Value="2347367935"/>
<FCUInt Name="colorWarning" Value="4290276607"/>
<FCUInt Name="colorError" Value="4283782655"/>
<FCBool Name="RedirectPythonOutput" Value="1"/>
<FCBool Name="RedirectPythonErrors" Value="1"/>
</FCParamGroup>
<FCParamGroup Name="Editor">
<FCUInt Name="Text" Value="4177064448"/>
<FCUInt Name="Bookmark" Value="2347367680"/>
<FCUInt Name="Breakpoint" Value="4283782400"/>
<FCUInt Name="Keyword" Value="4286170624"/>
<FCUInt Name="Comment" Value="1651680256"/>
<FCUInt Name="Block comment" Value="1651680256"/>
<FCUInt Name="Number" Value="3180591360"/>
<FCUInt Name="String" Value="4059728896"/>
<FCUInt Name="Character" Value="4278190080"/>
<FCUInt Name="Class name" Value="1358592768"/>
<FCUInt Name="Define name" Value="1358592768"/>
<FCUInt Name="Operator" Value="4177064448"/>
<FCUInt Name="Python output" Value="1651680256"/>
<FCUInt Name="Python error" Value="4283782400"/>
<FCUInt Name="Current line highlight" Value="1145526784"/>
<FCParamGroup Name="TreeView">
<FCUInt Name="TreeEditColor" Value="3180591615"/>
</FCParamGroup>
<FCParamGroup Name="MainWindow">
<FCText Name="StyleSheet">dracula.qss</FCText>
<FCText Name="OverlayActiveStyleSheet"/>
<FCText Name="MenuStyleSheet"/>
<FCText Name="StyleSheet">Dracula.qss</FCText>
</FCParamGroup>
<FCParamGroup Name="TreeView">
<FCUInt Name="TreeEditColor" Value="3180591615"/>
<FCParamGroup Name="Mod">
<FCParamGroup Name="Start">
<FCUInt Name="BackgroundColor1" Value="1331197183"/>
<FCUInt Name="BackgroundTextColor" Value="3180591615"/>
<FCUInt Name="PageColor" Value="673855231"/>
<FCUInt Name="PageTextColor" Value="3532384767"/>
<FCUInt Name="BoxColor" Value="1145527039"/>
<FCUInt Name="LinkColor" Value="1358593023"/>
<FCUInt Name="BackgroundColor2" Value="2141107711"/>
</FCParamGroup>
</FCParamGroup>
</FCParamGroup>
</FCParamGroup>
</FCParamGroup>

</FCParameters>
File renamed without changes.
20 changes: 14 additions & 6 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
### [FreeCAD](https://www.freecadweb.org)

#### Install using Git
#### Install using FreeCAD

If you are a git user, you can install the theme and keep up to date by cloning the repo:

git clone https://github.com/dracula/freecad.git
Starting with FreeCAD 0.20, this theme is available via the [Addon manager](https://wiki.freecadweb.org/Std_AddonMgr)!

#### Install manually

Download using the [GitHub .zip download](https://github.com/dracula/freecad/archive/master.zip) option and unzip them.
Refer to [the FreeCAD wiki](https://wiki.freecadweb.org/Preference_Packs#Distributing_a_pack) for manual installation instructions.

#### Activating theme

1. Install the PreferencePack either using the [Addon manager](https://wiki.freecadweb.org/Std_AddonMgr) inside FreeCAD or [manually](https://wiki.freecadweb.org/Preference_Packs#Distributing_a_pack).

2. Activate the pack via Preferences -> General -> Preference packs -> Dracula -> Apply

3. Boom! It's working

#### FreeCAD <0.20

If you are using a FreeCAD version before 0.20 you will need to do the following:

1. Copy `dracula.qss` to `~/.FreeCAD/Gui/Stylesheets/` (Linux)
`/Users/[YOUR_USER_NAME]/Library/Preferences/FreeCAD/Gui/Stylesheets/`
(MacOS) or `C:/[INSTALLATION_PATH]/FreeCAD/data/Gui/Stylesheets/` (Windows)

2. Copy `user.cfg` to `~/.FreeCAD/` (Linux)
2. Rename `Dracula.cfg` to `user.cfg` and copy to `~/.FreeCAD/` (Linux)
`/Users/[YOUR_USER_NAME]/Library/Preferences/FreeCAD/` (MacOS) or
`C:/[INSTALLATION_PATH]/FreeCAD/data/` (Windows). Note that will override
any existing configuration - if you want to preserve your original
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ All instructions can be found at [draculatheme.com/freecad](https://draculatheme

This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/freecad/graphs/contributors).

| [![Tim Clifford](https://github.com/tim-clifford.png?size=100)](https://github.com/tim-clifford) |
| ------------------------------------------------------------------------------------------------ |
| [Tim Clifford](https://github.com/tim-clifford) |
| [![Tim Clifford](https://github.com/tim-clifford.png?size=100)](https://github.com/tim-clifford) | [![Chrismettal](https://github.com/chrismettal.png?size=100)](https://gitlab.com/chrismettal) |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| [Tim Clifford](https://github.com/tim-clifford) | [Chrismettal](https://gitlab.com/chrismettal) |

## Community

Expand Down
21 changes: 21 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<package format="1" xmlns="https://wiki.freecad.org/Package_Metadata">
<name>Dracula</name>
<description>Dracula dark theme for FreeCAD</description>
<version>0.0.1</version>
<maintainer email="[email protected]">Tim Clifford</maintainer>
<license file="LICENSE">MIT</license>
<url type="repository" branch="master">https://github.com/dracula/freecad</url>
<icon>resources/icons/Dracula.svg</icon>

<content>
<preferencepack>
<name>Dracula</name>
<description>Dracula dark theme for FreeCAD</description>
<tag>color</tag>
<tag>dark</tag>
<tag>dracula</tag>
</preferencepack>
</content>

</package>
97 changes: 97 additions & 0 deletions resources/icons/Dracula.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icons/Dracula_200x200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.