[UI]: Some little adjusts
This commit is contained in:
1 parent
8a85419d4b
commit
64de9992df
4 files changed
+16
-10
No files matched your search
@@ -8,7 +8,7 @@
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-size: 18px;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -5,4 +5,9 @@ namespace GlobalIme
|
||||
{
|
||||
inline std::wstring AppName = L"FanImeTsf";
|
||||
inline std::wstring ServerName = L"FanImeTsf";
|
||||
} // namespace GlobalIme
|
||||
} // namespace GlobalIme
|
||||
|
||||
namespace CandidateUi
|
||||
{
|
||||
inline std::string NumHanSeparator = " "; // Number and Hanzi separator
|
||||
} // namespace CandidateUi
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include "fmt/xchar.h"
|
||||
#include "global/globals.h"
|
||||
|
||||
enum class TaskType
|
||||
{
|
||||
@@ -75,7 +76,7 @@ void WorkerThread()
|
||||
{
|
||||
Global::SelectedCandidateString = string_to_wstring(word);
|
||||
}
|
||||
candidate_string += std::to_string(i + 1) + ". " + word;
|
||||
candidate_string += std::to_string(i + 1) + CandidateUi::NumHanSeparator + word;
|
||||
Global::CandidateWordList.push_back(string_to_wstring(word));
|
||||
if (i < Global::CountOfOnePage - 1)
|
||||
{
|
||||
@@ -131,7 +132,7 @@ void WorkerThread()
|
||||
{
|
||||
Global::SelectedCandidateString = string_to_wstring(word);
|
||||
}
|
||||
candidate_string += std::to_string(i + 1) + ". " + word;
|
||||
candidate_string += std::to_string(i + 1) + CandidateUi::NumHanSeparator + word;
|
||||
Global::CandidateWordList.push_back(string_to_wstring(word));
|
||||
if (i < loop - 1)
|
||||
{
|
||||
@@ -163,7 +164,7 @@ void WorkerThread()
|
||||
{
|
||||
Global::SelectedCandidateString = string_to_wstring(word);
|
||||
}
|
||||
candidate_string += std::to_string(i + 1) + ". " + word;
|
||||
candidate_string += std::to_string(i + 1) + CandidateUi::NumHanSeparator + word;
|
||||
Global::CandidateWordList.push_back(string_to_wstring(word));
|
||||
if (i < loop - 1)
|
||||
{
|
||||
@@ -304,7 +305,7 @@ void WorkerThread()
|
||||
{
|
||||
Global::SelectedCandidateString = string_to_wstring(word);
|
||||
}
|
||||
candidate_string += std::to_string(i + 1) + " " + word;
|
||||
candidate_string += std::to_string(i + 1) + CandidateUi::NumHanSeparator + word;
|
||||
Global::CandidateWordList.push_back(string_to_wstring(word));
|
||||
if (i < Global::CountOfOnePage - 1)
|
||||
{
|
||||
@@ -380,7 +381,7 @@ void WorkerThread()
|
||||
{
|
||||
Global::SelectedCandidateString = string_to_wstring(word);
|
||||
}
|
||||
candidate_string += std::to_string(i + 1) + ". " + word;
|
||||
candidate_string += std::to_string(i + 1) + CandidateUi::NumHanSeparator + word;
|
||||
Global::CandidateWordList.push_back(string_to_wstring(word));
|
||||
if (i < loop - 1)
|
||||
{
|
||||
@@ -415,7 +416,7 @@ void WorkerThread()
|
||||
{
|
||||
Global::SelectedCandidateString = string_to_wstring(word);
|
||||
}
|
||||
candidate_string += std::to_string(i + 1) + ". " + word;
|
||||
candidate_string += std::to_string(i + 1) + CandidateUi::NumHanSeparator + word;
|
||||
Global::CandidateWordList.push_back(string_to_wstring(word));
|
||||
if (i < loop - 1)
|
||||
{
|
||||
|
||||
@@ -25,8 +25,8 @@ int PrepareCandidateWindowHtml()
|
||||
std::wstring entireHtml = L"/html/default-themes/vertical_candidate_window_dark.html";
|
||||
std::wstring bodyHtml = L"/html/default-themes/body/vertical_candidate_window_dark.html";
|
||||
|
||||
bool isHorizontal = true;
|
||||
bool isNormal = true;
|
||||
bool isHorizontal = false;
|
||||
bool isNormal = false;
|
||||
|
||||
if (isHorizontal)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user