Skip to content

请问如何更改block颜色? #171

Discussion options

You must be logged in to vote

block 的颜色是在这里设置的,默认是跟随主题色而变。

\setbeamercolor{block title}{fg=white,bg=cprimary!90}
\setbeamercolor{block title alerted}{use=alerted text,
fg=white,bg=csecondary}
\setbeamercolor{block title example}{use=example text,
fg=cquanternary,bg=ctertiary}
\setbeamercolor{block body}{parent=normal text,use=block title,
bg=block title.bg!15}
\setbeamercolor{block body alerted}{parent=normal text,
use=block title alerted,bg=block title alerted.bg!15}
\setbeamercolor{block body example}{parent=normal text,
use=block title example,bg=block title example.bg!15}

那么在 \use…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Amethystine-Yuan
Comment options

Answer selected by Amethystine-Yuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants