Skip to content

Commit

Permalink
Attempt to fix various styling issues
Browse files Browse the repository at this point in the history
- Issue where font-size:large is set to medium when importing
bold text
- Issue #179
  • Loading branch information
Cuperino committed Oct 12, 2023
1 parent 5022259 commit 32d2111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prompter/documenthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ void DocumentHandler::setDocument(QQuickTextDocument *document)
if (m_document) {
m_document->textDocument()->setDefaultStyleSheet(QString::fromUtf8(
"body{margin:0;padding:0;color:\"#FFFFFF\";}a:link,a:visited,a:hover,a:active,a:before,a:after{text-decoration:overline;color:\"#FFFFFF\";"
"background-color:rgba(0,0,0,0.0);}blockquote,address,cite,code,pre,h1,h2,h3,h4,h5,h6,table,tbody,td,th,thead,tr,dl,dt,big,small,tt{white-"
"space:pre-wrap;font-size:medium;line-height:100%;margin:0;padding:0;border-width:2px;border-collapse:collapse;border-style:solid;border-color:\"#"
"background-color:rgba(0,0,0,0.0);}blockquote,address,cite,code,pre,h1,h2,h3,h4,h5,h6,table,tbody,td,th,thead,tr,dl,dt,tt{white-"
"space:pre-wrap;line-height:100%;margin:0;padding:0;border-width:2px;border-collapse:collapse;border-style:solid;border-color:\"#"
"404040\";background-color:rgba(0,0,0,0.0);font-weight:normal;}table,tbody,thead{width:100%;}table,tbody,thead,td,th,tr{border:1pt;valign:top;"
"background-color:rgba(0,0,0,0.0);}img{margin:5pt;width:50vw;}p{margin:0;}h1,h2,h3,h4,h5,h6,big{font-size:medium;font-weight:normal;}"));
"background-color:rgba(0,0,0,0.0);}img{margin:5pt;width:50vw;}p{margin:0;}h1,h2,h3,h4,h5,h6{font-size:medium;font-weight:normal;}"));
connect(m_document->textDocument(), &QTextDocument::modificationChanged, this, &DocumentHandler::modifiedChanged);
connect(m_document->textDocument(), &QTextDocument::contentsChanged, this, &DocumentHandler::setMarkersListDirty);
}
Expand Down

0 comments on commit 32d2111

Please sign in to comment.