Comments (8)
Yes. It's the plantuml.jar
file that I used out of date. After changing the jar file, the image is no longer dark theme.
from aws-icons-for-plantuml.
I think I have seen this with older versions of PlantUML. Can you add Title %version()
to your file and share the output?
@startuml
Title %version()
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v17.0/dist
!include AWSPuml/AWSCommon.puml
!include AWSPuml/General/SAMLtoken.puml
!include AWSPuml/Compute/Lambda.puml
!include AWSPuml/Analytics/OpenSearchService.puml
!include AWSPuml/Analytics/OpenSearchServiceOpenSearchDashboards.puml
Lambda(ingestionLambda, "Ingestion Lambda", "ingest data")
@enduml
from aws-icons-for-plantuml.
Title %version()
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v17.0/dist
!include AWSPuml/AWSCommon.puml
!include AWSPuml/General/SAMLtoken.puml
!include AWSPuml/Compute/Lambda.puml
!include AWSPuml/Analytics/OpenSearchService.puml
!include AWSPuml/Analytics/OpenSearchServiceOpenSearchDashboards.puml
Lambda(ingestionLambda, "Ingestion Lambda", "ingest data")
from aws-icons-for-plantuml.
1.2021.12 is about 2 years old and must not like the Dark Mode support detection logic (included in AWSCommon.puml
using the code below). Is this something you can get upgraded?
Can you try and set !$AWS_DARK = false
before you !include AWSPuml/AWSCommon.puml
and see if that works. Any chance $PUML_MODE
being set as plantuml.jar arg?
' Dark Mode support
' ##################################
' if $AWS_DARK is not defined, check $PUML_MODE
!if (%not(%variable_exists("$AWS_DARK")) && (%variable_exists("$PUML_MODE") && $PUML_MODE == "dark"))
!$AWS_DARK = true
!endif
' ensure $AWS_DARK is either true or false
!if %not(%variable_exists("$AWS_DARK") && ($AWS_DARK == true))
!$AWS_DARK = false
!endif
from aws-icons-for-plantuml.
Was hit with the same issue - out of nowhere all diagrams have black / dark background. Reverted to v15.
Specifying these (before include AWSPuml/AWSCommon) didn't help:
!$AWS_DARK = false
!$PUML_MODE = "light"
I think Dark Mode detection logic should be flipped to have bias towards transparent (white) background (maintain compatibility with previous versions).
from aws-icons-for-plantuml.
The logic is supposed to default to light mode - this is the code inside AWSCommon.puml
that would set $AWS_DARK = true
' if $AWS_DARK is not defined, check $PUML_MODE
!if (%not(%variable_exists("$AWS_DARK")) && (%variable_exists("$PUML_MODE") && $PUML_MODE == "dark"))
!$AWS_DARK = true
!endif
I tested with 1.2022.5 and see the same default as dark behavior. I testing the "nested if" logic below and now it works as expect on the older version. Must have been a bug with &&
!if (%not(%variable_exists("$AWS_DARK")))
!if ((%variable_exists("$PUML_MODE") && $PUML_MODE == "dark"))
!$AWS_DARK = true
!endif
!endif
Can you do a local test of the new logic (maybe edit AWSCommon.puml
or import a local version) and see if works for you?
from aws-icons-for-plantuml.
fixed with release 18.0
from aws-icons-for-plantuml.
Tested v18 - all seems good (light mode as expected)
- with
!$AWS_DARK = false & !$PUML_MODE = "light"
- w/o any vars
Thank you for a quick update 😲 👍
from aws-icons-for-plantuml.
Related Issues (20)
- Syntax error on AWS objects HOT 3
- 404 Not Found HOT 1
- SecurityGroup puml doesnot work HOT 1
- Including General/Globe.puml results in a syntax error HOT 2
- Please add AwS Location Service puml/image HOT 6
- Define variable in puml files to reference color HOT 6
- AWSSimplified.puml should also take into account sequence diagrams HOT 5
- Request: Overlapping Groups HOT 2
- Request: List of content HOT 2
- Can we add the GraphQL icon to the overall set? HOT 5
- Question: Is it possible to generate fully scalable (SVG) diagrams? HOT 1
- Question: how can I modify the default label on Groups elements? HOT 2
- Support theming: (Example: Border color is hardcoded to gray) HOT 2
- Update to Release 17-2023.10.23 of AWS Architecture Icons
- VSCODE Reder Errror HOT 11
- Full list of the available icons HOT 1
- Syntax error for ApplicationIntegration/{all,EventBridge*}.puml HOT 2
- [Wanted feature][Refactor] Could you optimize all the `all.puml` files
- Update to Release 18-2024.02.06 of AWS Architecture Icons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-icons-for-plantuml.