GithubHelp home page GithubHelp logo

Comments (2)

camayl avatar camayl commented on June 24, 2024 1

TL;DR: changing the name of color mDarkTeal to maincolor somehow seems to break my setup.

Thank you so much for your help. Ok I realised what is not working. Let me explain.

So what my snippet (which I found online) does, is give me "inverted" section slides at the beginning of each section, looking like this:
Screenshot 2024-02-06 032124.

Additionally I use:

\setbeamercolor{frametitle}{bg=mDarkTeal}

Which results in the same color for frametitles and for section pages. All good.

HOWEVER, in another beamer document, I actually changed the name mDarkTeal to maincolor (because I am aiming to have an own customize mtheme version where I can easily change the colors), so that I had:

\setbeamercolor{frametitle}{bg=maincolor}

With this setup, somehow the frametitles and the section pages did not have the same color anymore:
Screenshot 2024-02-06 032738

So I guess a simple fix is just to leave the name of the "main" color as mDarkTeal, although I don't quite understand this. But thank you so much for helping me figure this out.

from mtheme.

kir0ul avatar kir0ul commented on June 24, 2024

Not sure what you're trying to do with the \AtBeginSection{} command, but I believe you can just use \usetheme[background=dark]{metropolis} to get inverted colors.

You can do something like that to change the original dark teal color:

\documentclass[10pt]{beamer}

\usetheme{metropolis}

\definecolor{maincolor}{HTML}{138a07}
\setbeamercolor{normal text}{%
    % bg=,
    fg=maincolor
}

\begin{document}

\begin{frame}{Metropolis test}
	\begin{itemize}
		\item Test 1
		\item Test 2
	\end{itemize}
\end{frame}

\end{document}

image

The annoying thing is that this color is the same for the background of the title and for the text color inside the slide.

from mtheme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.