diff --git a/README.md b/README.md index d2b350e..b65a8ba 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Intel Quartus Dark Mode Windows +# Intel/Altera Quartus Dark Mode Windows ![Dark mode image](sample.png) @@ -33,3 +33,4 @@ See `LICENSE.md` for - A box used in license setup still has a white background - The scintilla-based text editor has missing color (transparent) bar in the folding column which appears white. It appears we cannot change this using stylesheets (See [issue: Add a stylesheet for QScintilla](https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/122)) +- Pin planner is gray mode at best because Altera did not design this interface to be styled anything but light mode. Whenever a cell is set, every other cell is reset to a hardcoded white color, and the BGA view has hardcoded black text. diff --git a/darkstyle.qss b/darkstyle.qss index 2001b2c..5f7cb34 100644 --- a/darkstyle.qss +++ b/darkstyle.qss @@ -1974,6 +1974,18 @@ QTableCornerButton::section { border-radius: 0px; } +/* Unfortunately Altera made a dumb decision in the pin planner to hardcode the +default cell color and not leave an option for it in the color settings, which +results in the cells being set to white everytime a change is made, making white +font unreadable.... therefore I had no choice but to make these panels light +(and yes I tried to only make the individual items white but this +PPLQ_NODE_TABLE object does not have an entry PPLQ_NODE_TABLE::item to style) */ +PPLQ_NODE_TABLE +{ + color: #19232D; + background-color: #9DA9B5; +} + /* QHeaderView ------------------------------------------------------------ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview diff --git a/install.ps1 b/install.ps1 index 3910591..47b8047 100644 --- a/install.ps1 +++ b/install.ps1 @@ -125,6 +125,11 @@ $replacements = @{ "Altera_Foundation_Class\\AFCQ_NUI_INSTANCE_REGION_COLOR.+" = "Altera_Foundation_Class\AFCQ_NUI_INSTANCE_REGION_COLOR=@Variant(\0\0\0\x43\x1\xff\xff\x37\x37\x41\x41OO\0\0)" "Altera_Foundation_Class\\AFCQ_NUI_INSTANCE_ATOM_COLOR.+" = "Altera_Foundation_Class\AFCQ_NUI_INSTANCE_ATOM_COLOR=@Variant(\0\0\0\x43\x1\xff\xff\x1a\x1arr\xbb\xbb\0\0)" "Altera_Foundation_Class\\AFCQ_NUI_ENCRYPTED_INSTANCE_COLOR.+" = "Altera_Foundation_Class\AFCQ_NUI_ENCRYPTED_INSTANCE_COLOR=@Variant(\0\0\0\x43\x1\xff\xff\x45\x45SSdd\0\0)" + + # Pin assignment view + # Unfortunately we cannot set the line/text color to white, so we can't set + # the background to black. Settling for a gray background instead. + "Altera_Foundation_Class\\AFCQ_PPLQ_BACKGROUND_COLOR.+" = "Altera_Foundation_Class\AFCQ_PPLQ_BACKGROUND_COLOR=@Variant(\0\0\0\x43\x1\xff\xffTThhzz\0\0)" } $quartusSettings = Get-Content -Path $quartusSettingsPath -Raw foreach ($key in $replacements.Keys) {