Коммит ad17f3a1 создал по автору Проскурнёв Илья Сергеевич's avatar Проскурнёв Илья Сергеевич
Просмотр файлов

Откат autoconfig-решения — hover миникалендаря переносится в patch сборки

владелец 72c6494a
/* Мостех Почта: перебивание hover в миникалендаре через userChrome.css */
/* Навигационные секции месяц/год — всегда прозрачные */
calendar-minimonth .minimonth-nav-section,
calendar-minimonth .minimonth-nav-section:hover,
calendar-minimonth .minimonth-nav-item,
calendar-minimonth .minimonth-nav-item:hover {
background-color: transparent !important;
background: transparent !important;
}
/* Только стрелки меняют фон при hover */
calendar-minimonth .button.minimonth-nav-btn.months-back-button:hover,
calendar-minimonth .button.minimonth-nav-btn.months-back-button:active,
calendar-minimonth .button.minimonth-nav-btn.months-forward-button:hover,
calendar-minimonth .button.minimonth-nav-btn.months-forward-button:active,
calendar-minimonth .button.minimonth-nav-btn.years-back-button:hover,
calendar-minimonth .button.minimonth-nav-btn.years-back-button:active,
calendar-minimonth .button.minimonth-nav-btn.years-forward-button:hover,
calendar-minimonth .button.minimonth-nav-btn.years-forward-button:active {
background-color: #F2F3F4 !important;
}
......@@ -30,18 +30,6 @@ mkdir -p "$TB_CFG_DIR"
cp thunderbird.cfg "$TB_CFG_DIR/"
chmod 644 "$TB_CFG_DIR/thunderbird.cfg"
# defaults/profile/chrome — userContent.css и userChrome.css (копируются в профиль через thunderbird.cfg)
DEFAULTS_CHROME="$TB_DIR/defaults/profile/chrome"
mkdir -p "$DEFAULTS_CHROME"
if [ -f "chrome/userContent.css" ]; then
cp chrome/userContent.css "$DEFAULTS_CHROME/"
chmod 644 "$DEFAULTS_CHROME/userContent.css"
fi
if [ -f "chrome/userChrome.css" ]; then
cp chrome/userChrome.css "$DEFAULTS_CHROME/"
chmod 644 "$DEFAULTS_CHROME/userChrome.css"
fi
echo "Готово! Перезапустите Thunderbird."
echo "Файлы установлены:"
echo " - $TB_DIR/autoconfig.js"
......
......@@ -30,40 +30,22 @@ try {
var userContent = chromeDir.clone();
userContent.append("userContent.css");
var userChrome = chromeDir.clone();
userChrome.append("userChrome.css");
// Всегда обновляем — чтобы при обновлении пакета новые стили подхватились
var greDir = dirSvc.get("XCurProcD", Components.interfaces.nsIFile);
var srcFile = greDir.clone();
srcFile.append("defaults");
srcFile.append("profile");
srcFile.append("chrome");
srcFile.append("userContent.css");
var srcUserContent = srcFile.clone();
srcUserContent.append("userContent.css");
var srcUserChrome = srcFile.clone();
srcUserChrome.append("userChrome.css");
if (srcUserContent.exists() || srcUserChrome.exists()) {
if (srcFile.exists()) {
if (!chromeDir.exists()) {
chromeDir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
}
// userContent.css
if (srcUserContent.exists()) {
if (userContent.exists()) {
userContent.remove(false);
}
srcUserContent.copyTo(chromeDir, "userContent.css");
}
// userChrome.css
if (srcUserChrome.exists()) {
if (userChrome.exists()) {
userChrome.remove(false);
}
srcUserChrome.copyTo(chromeDir, "userChrome.css");
if (userContent.exists()) {
userContent.remove(false);
}
srcFile.copyTo(chromeDir, "userContent.css");
}
} catch(e) {
displayError("Mostechmail autoconfig error", e);
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать