Style pin planner

This commit is contained in:
Peter 2024-08-11 05:33:59 +08:00
parent eaf4498d4c
commit a1f2e4fea8
3 changed files with 19 additions and 1 deletions

View File

@ -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.

View File

@ -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

View File

@ -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) {