--Bug fixes -fractorium-sh was converted to windows format and someone changed qss file location.

This commit is contained in:
Michel Mastriani 2023-07-24 22:20:53 -03:00
parent 9b50d065d9
commit 640944f60f
2 changed files with 24 additions and 24 deletions

View File

@ -1,23 +1,23 @@
#!/bin/bash #!/bin/bash
CONFIG_PATH=~/.config/fractorium CONFIG_PATH=~/.config/fractorium
DARK_MAC=~/.config/fractorium/dark_mac.qss DARK_MAC=~/.config/fractorium/dark_mac.qss
LIGHT_DARK=~/.config/fractorium/lightdark.qss LIGHT_DARK=~/.config/fractorium/lightdark.qss
URANIUM=~/.config/fractorium/uranium.qss URANIUM=~/.config/fractorium/uranium.qss
#./fractorium #./fractorium
if [ ! -e "$DARK_LINUX" ] ; then if [ ! -e "$DARK_LINUX" ] ; then
mkdir -p $CONFIG_PATH mkdir -p $CONFIG_PATH
cp dark_mac.qss $CONFIG_PATH cp dark_mac.qss $CONFIG_PATH
fi fi
if [ ! -e "$LIGHT_DARK" ] ; then if [ ! -e "$LIGHT_DARK" ] ; then
mkdir -p $CONFIG_PATH mkdir -p $CONFIG_PATH
cp lightdark.qss $CONFIG_PATH cp lightdark.qss $CONFIG_PATH
fi fi
if [ ! -e "$URANIUM" ] ; then if [ ! -e "$URANIUM" ] ; then
mkdir -p $CONFIG_PATH mkdir -p $CONFIG_PATH
cp uranium.qss $CONFIG_PATH cp uranium.qss $CONFIG_PATH
fi fi

View File

@ -666,7 +666,7 @@ QString QssDialog::OpenFile()
return !filenames.empty() ? filenames[0] : ""; return !filenames.empty() ? filenames[0] : "";
#else #else
auto filename = QFileDialog::getOpenFileName(this, tr("Open Stylesheet"), /*m_Parent->m_SettingsPath*/ "./", tr("Qss (*.qss)")); auto filename = QFileDialog::getOpenFileName(this, tr("Open Stylesheet"), m_Parent->m_SettingsPath, tr("Qss (*.qss)"));
return filename.size() > 0 ? filename : ""; return filename.size() > 0 ? filename : "";
#endif #endif
} }