]> git.sesse.net Git - nageru/commit
Make it possible for the theme to override the status line.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 24 Jul 2019 13:06:29 +0000 (15:06 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 24 Jul 2019 13:06:29 +0000 (15:06 +0200)
commit948d715655a84b93d8292e64731ea3c32b45deb7
treebee4723758ec3f082c12035784a9ec301084cdee
parentdb2997d7290315086635ec914137b80f855cee37
Make it possible for the theme to override the status line.

This is done by declaring a function format_status_line, which receives
the text that would normally be there (disk space left), as well as the
length of the current recording file in seconds. It can then return
whatever it would like.

My own code, but inspired by a C++ patch by Alex Thomazo in the Breizhcamp
repository (which did it by hardcoding a different status line in C++).
nageru/mainwindow.cpp
nageru/mainwindow.h
nageru/mixer.h
nageru/theme.cpp
nageru/theme.h
shared/disk_space_estimator.cpp
shared/disk_space_estimator.h